diff options
author | Leo Kim <leo.kim@atmel.com> | 2015-10-28 02:59:35 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-28 19:18:29 -0400 |
commit | d61f8e1eee1deb243ed538f290f90256ecb04975 (patch) | |
tree | d9f1c1a9c68d2d1ef3f9b1be37054a29bd8c1614 | |
parent | f8b1713246e90b81cd633910fe4128016ae43576 (diff) |
staging: wilc1000: rename strHostIfRemainOnChan of struct host_if_drv
This patch renames strHostIfRemainOnChan of struct host_if_drv to remain_on_ch
to avoid CamelCase naming convention.
And, remove the relation comment.
Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/wilc1000/host_interface.c | 24 | ||||
-rw-r--r-- | drivers/staging/wilc1000/host_interface.h | 4 |
2 files changed, 13 insertions, 15 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index ce09879f1422..dd09152de9ea 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c | |||
@@ -2477,13 +2477,13 @@ static int Handle_RemainOnChan(struct host_if_drv *hif_drv, | |||
2477 | struct wid wid; | 2477 | struct wid wid; |
2478 | 2478 | ||
2479 | if (!hif_drv->u8RemainOnChan_pendingreq) { | 2479 | if (!hif_drv->u8RemainOnChan_pendingreq) { |
2480 | hif_drv->strHostIfRemainOnChan.pVoid = pstrHostIfRemainOnChan->pVoid; | 2480 | hif_drv->remain_on_ch.pVoid = pstrHostIfRemainOnChan->pVoid; |
2481 | hif_drv->strHostIfRemainOnChan.pRemainOnChanExpired = pstrHostIfRemainOnChan->pRemainOnChanExpired; | 2481 | hif_drv->remain_on_ch.pRemainOnChanExpired = pstrHostIfRemainOnChan->pRemainOnChanExpired; |
2482 | hif_drv->strHostIfRemainOnChan.pRemainOnChanReady = pstrHostIfRemainOnChan->pRemainOnChanReady; | 2482 | hif_drv->remain_on_ch.pRemainOnChanReady = pstrHostIfRemainOnChan->pRemainOnChanReady; |
2483 | hif_drv->strHostIfRemainOnChan.u16Channel = pstrHostIfRemainOnChan->u16Channel; | 2483 | hif_drv->remain_on_ch.u16Channel = pstrHostIfRemainOnChan->u16Channel; |
2484 | hif_drv->strHostIfRemainOnChan.u32ListenSessionID = pstrHostIfRemainOnChan->u32ListenSessionID; | 2484 | hif_drv->remain_on_ch.u32ListenSessionID = pstrHostIfRemainOnChan->u32ListenSessionID; |
2485 | } else { | 2485 | } else { |
2486 | pstrHostIfRemainOnChan->u16Channel = hif_drv->strHostIfRemainOnChan.u16Channel; | 2486 | pstrHostIfRemainOnChan->u16Channel = hif_drv->remain_on_ch.u16Channel; |
2487 | } | 2487 | } |
2488 | 2488 | ||
2489 | if (hif_drv->usr_scan_req.pfUserScanResult) { | 2489 | if (hif_drv->usr_scan_req.pfUserScanResult) { |
@@ -2532,8 +2532,8 @@ ERRORHANDLER: | |||
2532 | jiffies + | 2532 | jiffies + |
2533 | msecs_to_jiffies(pstrHostIfRemainOnChan->u32duration)); | 2533 | msecs_to_jiffies(pstrHostIfRemainOnChan->u32duration)); |
2534 | 2534 | ||
2535 | if (hif_drv->strHostIfRemainOnChan.pRemainOnChanReady) | 2535 | if (hif_drv->remain_on_ch.pRemainOnChanReady) |
2536 | hif_drv->strHostIfRemainOnChan.pRemainOnChanReady(hif_drv->strHostIfRemainOnChan.pVoid); | 2536 | hif_drv->remain_on_ch.pRemainOnChanReady(hif_drv->remain_on_ch.pVoid); |
2537 | 2537 | ||
2538 | if (hif_drv->u8RemainOnChan_pendingreq) | 2538 | if (hif_drv->u8RemainOnChan_pendingreq) |
2539 | hif_drv->u8RemainOnChan_pendingreq = 0; | 2539 | hif_drv->u8RemainOnChan_pendingreq = 0; |
@@ -2605,9 +2605,9 @@ static u32 Handle_ListenStateExpired(struct host_if_drv *hif_drv, | |||
2605 | goto _done_; | 2605 | goto _done_; |
2606 | } | 2606 | } |
2607 | 2607 | ||
2608 | if (hif_drv->strHostIfRemainOnChan.pRemainOnChanExpired) { | 2608 | if (hif_drv->remain_on_ch.pRemainOnChanExpired) { |
2609 | hif_drv->strHostIfRemainOnChan.pRemainOnChanExpired(hif_drv->strHostIfRemainOnChan.pVoid | 2609 | hif_drv->remain_on_ch.pRemainOnChanExpired(hif_drv->remain_on_ch.pVoid, |
2610 | , pstrHostIfRemainOnChan->u32ListenSessionID); | 2610 | pstrHostIfRemainOnChan->u32ListenSessionID); |
2611 | } | 2611 | } |
2612 | P2P_LISTEN_STATE = 0; | 2612 | P2P_LISTEN_STATE = 0; |
2613 | } else { | 2613 | } else { |
@@ -2630,7 +2630,7 @@ static void ListenTimerCB(unsigned long arg) | |||
2630 | memset(&msg, 0, sizeof(struct host_if_msg)); | 2630 | memset(&msg, 0, sizeof(struct host_if_msg)); |
2631 | msg.id = HOST_IF_MSG_LISTEN_TIMER_FIRED; | 2631 | msg.id = HOST_IF_MSG_LISTEN_TIMER_FIRED; |
2632 | msg.drv = hif_drv; | 2632 | msg.drv = hif_drv; |
2633 | msg.body.remain_on_ch.u32ListenSessionID = hif_drv->strHostIfRemainOnChan.u32ListenSessionID; | 2633 | msg.body.remain_on_ch.u32ListenSessionID = hif_drv->remain_on_ch.u32ListenSessionID; |
2634 | 2634 | ||
2635 | result = wilc_mq_send(&hif_msg_q, &msg, sizeof(struct host_if_msg)); | 2635 | result = wilc_mq_send(&hif_msg_q, &msg, sizeof(struct host_if_msg)); |
2636 | if (result) | 2636 | if (result) |
diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h index e9bc83a0b9ac..ea47a0d03ed2 100644 --- a/drivers/staging/wilc1000/host_interface.h +++ b/drivers/staging/wilc1000/host_interface.h | |||
@@ -294,9 +294,7 @@ enum p2p_listen_state { | |||
294 | struct host_if_drv { | 294 | struct host_if_drv { |
295 | struct user_scan_req usr_scan_req; | 295 | struct user_scan_req usr_scan_req; |
296 | struct user_conn_req usr_conn_req; | 296 | struct user_conn_req usr_conn_req; |
297 | 297 | struct remain_ch remain_on_ch; | |
298 | /*Remain on channel struvture*/ | ||
299 | struct remain_ch strHostIfRemainOnChan; | ||
300 | u8 u8RemainOnChan_pendingreq; | 298 | u8 u8RemainOnChan_pendingreq; |
301 | u64 u64P2p_MgmtTimeout; | 299 | u64 u64P2p_MgmtTimeout; |
302 | u8 u8P2PConnect; | 300 | u8 u8P2PConnect; |