staging: unisys: fix CamelCase names in ReqHandlerAdd()
Fix CamelCase names: ReqHandlerAdd => req_handler_add Server_Channel_Ok => svr_channel_ok channelBytes => channel_bytes Server_Channel_Init => svr_channel_init clientStr => client_str ClientStrLen => client_str_len Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
157764e776
commit
3636c0da3d
2 changed files with 11 additions and 11 deletions
|
@ -65,15 +65,15 @@ struct req_handler_info {
|
||||||
struct list_head list_link; /* links into ReqHandlerInfo_list */
|
struct list_head list_link; /* links into ReqHandlerInfo_list */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct req_handler_info *ReqHandlerAdd(uuid_le switchTypeGuid,
|
struct req_handler_info *req_handler_add(uuid_le switch_uuid,
|
||||||
const char *switch_type_name,
|
const char *switch_type_name,
|
||||||
int (*controlfunc)(struct io_msgs *),
|
int (*controlfunc)(struct io_msgs *),
|
||||||
unsigned long min_channel_bytes,
|
unsigned long min_channel_bytes,
|
||||||
int (*Server_Channel_Ok)(unsigned long
|
int (*svr_channel_ok)(unsigned long
|
||||||
channelBytes),
|
channel_bytes),
|
||||||
int (*Server_Channel_Init)(void *x,
|
int (*svr_channel_init)(void *x,
|
||||||
unsigned char *clientStr,
|
unsigned char *client_str,
|
||||||
u32 clientStrLen, u64 bytes));
|
u32 client_str_len, u64 bytes));
|
||||||
struct req_handler_info *ReqHandlerFind(uuid_le switchTypeGuid);
|
struct req_handler_info *ReqHandlerFind(uuid_le switchTypeGuid);
|
||||||
int ReqHandlerDel(uuid_le switchTypeGuid);
|
int ReqHandlerDel(uuid_le switchTypeGuid);
|
||||||
|
|
||||||
|
@ -119,9 +119,9 @@ int uisctrl_register_req_handler_ex(uuid_le switchTypeGuid,
|
||||||
const char *switch_type_name,
|
const char *switch_type_name,
|
||||||
int (*fptr)(struct io_msgs *),
|
int (*fptr)(struct io_msgs *),
|
||||||
unsigned long min_channel_bytes,
|
unsigned long min_channel_bytes,
|
||||||
int (*Server_Channel_Ok)(unsigned long
|
int (*svr_channel_ok)(unsigned long
|
||||||
channelBytes),
|
channelBytes),
|
||||||
int (*Server_Channel_Init)
|
int (*svr_channel_init)
|
||||||
(void *x, unsigned char *clientStr,
|
(void *x, unsigned char *clientStr,
|
||||||
u32 clientStrLen, u64 bytes),
|
u32 clientStrLen, u64 bytes),
|
||||||
ULTRA_VBUS_DEVICEINFO *chipset_DriverInfo);
|
ULTRA_VBUS_DEVICEINFO *chipset_DriverInfo);
|
||||||
|
|
|
@ -135,7 +135,7 @@ uisctrl_register_req_handler_ex(uuid_le switchTypeGuid,
|
||||||
&switchTypeGuid);
|
&switchTypeGuid);
|
||||||
goto Away;
|
goto Away;
|
||||||
}
|
}
|
||||||
pReqHandlerInfo = ReqHandlerAdd(switchTypeGuid,
|
pReqHandlerInfo = req_handler_add(switchTypeGuid,
|
||||||
switch_type_name,
|
switch_type_name,
|
||||||
controlfunc,
|
controlfunc,
|
||||||
min_channel_bytes,
|
min_channel_bytes,
|
||||||
|
@ -279,7 +279,7 @@ static LIST_HEAD(ReqHandlerInfo_list); /* list of struct req_handler_info */
|
||||||
static DEFINE_SPINLOCK(ReqHandlerInfo_list_lock);
|
static DEFINE_SPINLOCK(ReqHandlerInfo_list_lock);
|
||||||
|
|
||||||
struct req_handler_info *
|
struct req_handler_info *
|
||||||
ReqHandlerAdd(uuid_le switchTypeGuid,
|
req_handler_add(uuid_le switch_uuid,
|
||||||
const char *switch_type_name,
|
const char *switch_type_name,
|
||||||
int (*controlfunc)(struct io_msgs *),
|
int (*controlfunc)(struct io_msgs *),
|
||||||
unsigned long min_channel_bytes,
|
unsigned long min_channel_bytes,
|
||||||
|
@ -292,7 +292,7 @@ ReqHandlerAdd(uuid_le switchTypeGuid,
|
||||||
rc = kzalloc(sizeof(*rc), GFP_ATOMIC);
|
rc = kzalloc(sizeof(*rc), GFP_ATOMIC);
|
||||||
if (!rc)
|
if (!rc)
|
||||||
return NULL;
|
return NULL;
|
||||||
rc->switch_uuid = switchTypeGuid;
|
rc->switch_uuid = switch_uuid;
|
||||||
rc->controlfunc = controlfunc;
|
rc->controlfunc = controlfunc;
|
||||||
rc->min_channel_bytes = min_channel_bytes;
|
rc->min_channel_bytes = min_channel_bytes;
|
||||||
rc->server_channel_ok = Server_Channel_Ok;
|
rc->server_channel_ok = Server_Channel_Ok;
|
||||||
|
|
Loading…
Add table
Reference in a new issue