]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: unisys: fix CamelCase in struct req_handler_info
authorBenjamin Romer <benjamin.romer@unisys.com>
Fri, 3 Oct 2014 18:08:51 +0000 (14:08 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:04 +0000 (10:29 +0800)
Fix CamelCase names:
switchTypeGuid => switch_uuid
Server_Channel_Ok => server_channel_ok
channelBytes => channel_bytes
Server_Channel_Init => server_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>
drivers/staging/unisys/include/uisutils.h
drivers/staging/unisys/uislib/uisutils.c

index 9bb95d597d5c6f8200b6c8c97ab198abc0295d31..992c8cdfb725398bb77df04948a5dda5c1ccbbad 100644 (file)
@@ -55,12 +55,12 @@ extern int (*virt_control_chan_func)(struct guest_msgs *);
 extern atomic_t uisutils_registered_services;
 
 struct req_handler_info {
-       uuid_le switchTypeGuid;
+       uuid_le switch_uuid;
        int (*controlfunc)(struct io_msgs *);
        unsigned long min_channel_bytes;
-       int (*Server_Channel_Ok)(unsigned long channelBytes);
-       int (*Server_Channel_Init)
-        (void *x, unsigned char *clientStr, u32 clientStrLen, u64 bytes);
+       int (*server_channel_ok)(unsigned long channel_bytes);
+       int (*server_channel_init)
+        (void *x, unsigned char *client_str, u32 client_str_len, u64 bytes);
        char switch_type_name[99];
        struct list_head list_link;     /* links into ReqHandlerInfo_list */
 };
index f3a23a62d6fe99de7416b7d3a197ad145b00d194..7006c470d6ac692e28343eef90366e9e7b5e23da 100644 (file)
@@ -292,11 +292,11 @@ ReqHandlerAdd(uuid_le switchTypeGuid,
        rc = kzalloc(sizeof(*rc), GFP_ATOMIC);
        if (!rc)
                return NULL;
-       rc->switchTypeGuid = switchTypeGuid;
+       rc->switch_uuid = switchTypeGuid;
        rc->controlfunc = controlfunc;
        rc->min_channel_bytes = min_channel_bytes;
-       rc->Server_Channel_Ok = Server_Channel_Ok;
-       rc->Server_Channel_Init = Server_Channel_Init;
+       rc->server_channel_ok = Server_Channel_Ok;
+       rc->server_channel_init = Server_Channel_Init;
        if (switch_type_name)
                strncpy(rc->switch_type_name, switch_type_name,
                        sizeof(rc->switch_type_name) - 1);
@@ -316,7 +316,7 @@ ReqHandlerFind(uuid_le switchTypeGuid)
        spin_lock(&ReqHandlerInfo_list_lock);
        list_for_each_safe(lelt, tmp, &ReqHandlerInfo_list) {
                entry = list_entry(lelt, struct req_handler_info, list_link);
-               if (uuid_le_cmp(entry->switchTypeGuid, switchTypeGuid) == 0) {
+               if (uuid_le_cmp(entry->switch_uuid, switchTypeGuid) == 0) {
                        spin_unlock(&ReqHandlerInfo_list_lock);
                        return entry;
                }
@@ -335,7 +335,7 @@ ReqHandlerDel(uuid_le switchTypeGuid)
        spin_lock(&ReqHandlerInfo_list_lock);
        list_for_each_safe(lelt, tmp, &ReqHandlerInfo_list) {
                entry = list_entry(lelt, struct req_handler_info, list_link);
-               if (uuid_le_cmp(entry->switchTypeGuid, switchTypeGuid) == 0) {
+               if (uuid_le_cmp(entry->switch_uuid, switchTypeGuid) == 0) {
                        list_del(lelt);
                        kfree(entry);
                        rc++;