]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: rtl8712: Fixed CamelCase cmdThread rename to cmd_thread
authorDeepak Mishra <linux.dkm@gmail.com>
Sun, 9 Jun 2019 12:31:42 +0000 (18:01 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Jun 2019 15:57:21 +0000 (17:57 +0200)
This patch renames CamelCase cmdThread to cmd_thread in struct _adapter in
drv_types.h and in os_intfs.c

This was reported by checkpatch.pl

Signed-off-by: Deepak Mishra <linux.dkm@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/drv_types.h
drivers/staging/rtl8712/os_intfs.c

index 9fbd19f03ca9a6c7e36d75ce1230f60bad73a4c0..0c722e9c24109dcbedcc8156755d3172e26c8c0c 100644 (file)
@@ -151,7 +151,7 @@ struct _adapter {
        u32     IsrContent;
        u8      eeprom_address_size;
        u8      hw_init_completed;
-       struct task_struct *cmdThread;
+       struct task_struct *cmd_thread;
        pid_t evtThread;
        struct task_struct *xmitThread;
        pid_t recvThread;
index c962696c9822f5e143a78468ba4ddb8e0a6e8876..1653b36c4bfd25a19069411f844e02a18eb9c958 100644 (file)
@@ -221,9 +221,9 @@ struct net_device *r8712_init_netdev(void)
 
 static u32 start_drv_threads(struct _adapter *padapter)
 {
-       padapter->cmdThread = kthread_run(r8712_cmd_thread, padapter, "%s",
+       padapter->cmd_thread = kthread_run(r8712_cmd_thread, padapter, "%s",
                                          padapter->pnetdev->name);
-       if (IS_ERR(padapter->cmdThread))
+       if (IS_ERR(padapter->cmd_thread))
                return _FAIL;
        return _SUCCESS;
 }
@@ -235,7 +235,7 @@ void r8712_stop_drv_threads(struct _adapter *padapter)
 
        /*Below is to terminate r8712_cmd_thread & event_thread...*/
        complete(&padapter->cmdpriv.cmd_queue_comp);
-       if (padapter->cmdThread)
+       if (padapter->cmd_thread)
                wait_for_completion_interruptible(completion);
        padapter->cmdpriv.cmd_seq = 1;
 }