Commit e9b9262a authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman

staging: unisys: fix CamelCase name for registered services variable

Fix CamelCase names:
UisUtils_Registered_Services => uisutils_registered_services
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2df7cc62
...@@ -51,7 +51,7 @@ extern int (*virt_control_chan_func)(struct guest_msgs *); ...@@ -51,7 +51,7 @@ extern int (*virt_control_chan_func)(struct guest_msgs *);
#define CCF_ERROR 0 /* completed and failed */ #define CCF_ERROR 0 /* completed and failed */
#define CCF_OK 1 /* completed successfully */ #define CCF_OK 1 /* completed successfully */
#define CCF_PENDING 2 /* operation still pending */ #define CCF_PENDING 2 /* operation still pending */
extern atomic_t UisUtils_Registered_Services; extern atomic_t uisutils_registered_services;
typedef unsigned int MACARRAY[MAX_MACADDR_LEN]; typedef unsigned int MACARRAY[MAX_MACADDR_LEN];
typedef struct ReqHandlerInfo_struct { typedef struct ReqHandlerInfo_struct {
......
...@@ -1232,7 +1232,7 @@ info_debugfs_read_helper(char **buff, int *buff_len) ...@@ -1232,7 +1232,7 @@ info_debugfs_read_helper(char **buff, int *buff_len)
read_unlock(&BusListLock); read_unlock(&BusListLock);
if (PLINE("UisUtils_Registered_Services: %d\n", if (PLINE("UisUtils_Registered_Services: %d\n",
atomic_read(&UisUtils_Registered_Services)) < 0) atomic_read(&uisutils_registered_services)) < 0)
goto err_done; goto err_done;
if (PLINE("cycles_before_wait %llu wait_cycles:%llu\n", if (PLINE("cycles_before_wait %llu wait_cycles:%llu\n",
cycles_before_wait, wait_cycles) < 0) cycles_before_wait, wait_cycles) < 0)
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#define __MYFILE__ "uisutils.c" #define __MYFILE__ "uisutils.c"
/* exports */ /* exports */
atomic_t UisUtils_Registered_Services = ATOMIC_INIT(0); atomic_t uisutils_registered_services = ATOMIC_INIT(0);
/* num registrations via /* num registrations via
* uisctrl_register_req_handler() or * uisctrl_register_req_handler() or
* uisctrl_register_req_handler_ex() */ * uisctrl_register_req_handler_ex() */
...@@ -83,11 +83,11 @@ uisctrl_register_req_handler(int type, void *fptr, ...@@ -83,11 +83,11 @@ uisctrl_register_req_handler(int type, void *fptr,
case 2: case 2:
if (fptr) { if (fptr) {
if (!virt_control_chan_func) if (!virt_control_chan_func)
atomic_inc(&UisUtils_Registered_Services); atomic_inc(&uisutils_registered_services);
virt_control_chan_func = fptr; virt_control_chan_func = fptr;
} else { } else {
if (virt_control_chan_func) if (virt_control_chan_func)
atomic_dec(&UisUtils_Registered_Services); atomic_dec(&uisutils_registered_services);
virt_control_chan_func = NULL; virt_control_chan_func = NULL;
} }
break; break;
...@@ -145,7 +145,7 @@ uisctrl_register_req_handler_ex(uuid_le switchTypeGuid, ...@@ -145,7 +145,7 @@ uisctrl_register_req_handler_ex(uuid_le switchTypeGuid,
goto Away; goto Away;
} }
atomic_inc(&UisUtils_Registered_Services); atomic_inc(&uisutils_registered_services);
rc = 1; /* success */ rc = 1; /* success */
Away: Away:
if (rc) { if (rc) {
...@@ -170,7 +170,7 @@ uisctrl_unregister_req_handler_ex(uuid_le switchTypeGuid) ...@@ -170,7 +170,7 @@ uisctrl_unregister_req_handler_ex(uuid_le switchTypeGuid)
&switchTypeGuid); &switchTypeGuid);
goto Away; goto Away;
} }
atomic_dec(&UisUtils_Registered_Services); atomic_dec(&uisutils_registered_services);
rc = 1; /* success */ rc = 1; /* success */
Away: Away:
if (!rc) if (!rc)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment