Commit cc96550b authored by Deepak Mishra's avatar Deepak Mishra Committed by Greg Kroah-Hartman

staging: rtl8712: Fixed CamelCase cmdThread rename to cmd_thread

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: default avatarDeepak Mishra <linux.dkm@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 43dfe7df
...@@ -151,7 +151,7 @@ struct _adapter { ...@@ -151,7 +151,7 @@ struct _adapter {
u32 IsrContent; u32 IsrContent;
u8 eeprom_address_size; u8 eeprom_address_size;
u8 hw_init_completed; u8 hw_init_completed;
struct task_struct *cmdThread; struct task_struct *cmd_thread;
pid_t evtThread; pid_t evtThread;
struct task_struct *xmitThread; struct task_struct *xmitThread;
pid_t recvThread; pid_t recvThread;
......
...@@ -221,9 +221,9 @@ struct net_device *r8712_init_netdev(void) ...@@ -221,9 +221,9 @@ struct net_device *r8712_init_netdev(void)
static u32 start_drv_threads(struct _adapter *padapter) 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); padapter->pnetdev->name);
if (IS_ERR(padapter->cmdThread)) if (IS_ERR(padapter->cmd_thread))
return _FAIL; return _FAIL;
return _SUCCESS; return _SUCCESS;
} }
...@@ -235,7 +235,7 @@ void r8712_stop_drv_threads(struct _adapter *padapter) ...@@ -235,7 +235,7 @@ void r8712_stop_drv_threads(struct _adapter *padapter)
/*Below is to terminate r8712_cmd_thread & event_thread...*/ /*Below is to terminate r8712_cmd_thread & event_thread...*/
complete(&padapter->cmdpriv.cmd_queue_comp); complete(&padapter->cmdpriv.cmd_queue_comp);
if (padapter->cmdThread) if (padapter->cmd_thread)
wait_for_completion_interruptible(completion); wait_for_completion_interruptible(completion);
padapter->cmdpriv.cmd_seq = 1; padapter->cmdpriv.cmd_seq = 1;
} }
......
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