Commit c2115d8e authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman

staging: wilc1000: rename variable HostIFthreadHandler

This patch renames variable HostIFthreadHandler to hif_thread_handler
to avoid CamelCase naming convention.
Signed-off-by: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarTony Cho <tony.cho@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4fb770d6
...@@ -233,7 +233,7 @@ static struct host_if_drv *wfidrv_list[NUM_CONCURRENT_IFC + 1]; ...@@ -233,7 +233,7 @@ static struct host_if_drv *wfidrv_list[NUM_CONCURRENT_IFC + 1];
struct host_if_drv *terminated_handle; struct host_if_drv *terminated_handle;
bool g_obtainingIP; bool g_obtainingIP;
u8 P2P_LISTEN_STATE; u8 P2P_LISTEN_STATE;
static struct task_struct *HostIFthreadHandler; static struct task_struct *hif_thread_handler;
static WILC_MsgQueueHandle gMsgQHostIF; static WILC_MsgQueueHandle gMsgQHostIF;
static struct semaphore hSemHostIFthrdEnd; static struct semaphore hSemHostIFthrdEnd;
...@@ -4235,8 +4235,10 @@ s32 host_int_init(struct host_if_drv **hif_drv_handler) ...@@ -4235,8 +4235,10 @@ s32 host_int_init(struct host_if_drv **hif_drv_handler)
PRINT_ER("Failed to creat MQ\n"); PRINT_ER("Failed to creat MQ\n");
goto _fail_; goto _fail_;
} }
HostIFthreadHandler = kthread_run(hostIFthread, NULL, "WILC_kthread");
if (IS_ERR(HostIFthreadHandler)) { hif_thread_handler = kthread_run(hostIFthread, NULL, "WILC_kthread");
if (IS_ERR(hif_thread_handler)) {
PRINT_ER("Failed to creat Thread\n"); PRINT_ER("Failed to creat Thread\n");
result = -EFAULT; result = -EFAULT;
goto _fail_mq_; goto _fail_mq_;
...@@ -4280,7 +4282,7 @@ s32 host_int_init(struct host_if_drv **hif_drv_handler) ...@@ -4280,7 +4282,7 @@ s32 host_int_init(struct host_if_drv **hif_drv_handler)
up(&hif_drv->gtOsCfgValuesSem); up(&hif_drv->gtOsCfgValuesSem);
del_timer_sync(&hif_drv->hConnectTimer); del_timer_sync(&hif_drv->hConnectTimer);
del_timer_sync(&hif_drv->hScanTimer); del_timer_sync(&hif_drv->hScanTimer);
kthread_stop(HostIFthreadHandler); kthread_stop(hif_thread_handler);
_fail_mq_: _fail_mq_:
wilc_mq_destroy(&gMsgQHostIF); wilc_mq_destroy(&gMsgQHostIF);
_fail_: _fail_:
......
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