staging: wilc1000: change parameter names in send_config_pkt
authorTony Cho <tony.cho@atmel.com>
Mon, 12 Oct 2015 07:55:40 +0000 (16:55 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 03:58:01 +0000 (20:58 -0700)
This patch changes the parameter names in send_config_pkt function as
the followings:

- u8Mode to mode
- pstrWIDs to wids
- u32WIDsCount to count
- drvHandler to drv

Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/coreconfigurator.c
drivers/staging/wilc1000/coreconfigurator.h

index 3244e2a06160809fce517f50db720a216368f734..1d45869327c89212ad3f76deb4850f73b73ccc3c 100644 (file)
@@ -595,41 +595,40 @@ s32 DeallocateAssocRespInfo(tstrConnectRespInfo *pstrConnectRespInfo)
  *  @date              1 Mar 2012
  *  @version   1.0
  */
-s32 send_config_pkt(u8 u8Mode, tstrWID *pstrWIDs,
-                   u32 u32WIDsCount, u32 drvHandler)
+s32 send_config_pkt(u8 mode, tstrWID *wids, u32 count, u32 drv)
 {
        s32 counter = 0, ret = 0;
 
-       if (u8Mode == GET_CFG) {
-               for (counter = 0; counter < u32WIDsCount; counter++) {
+       if (mode == GET_CFG) {
+               for (counter = 0; counter < count; counter++) {
                        PRINT_INFO(CORECONFIG_DBG, "Sending CFG packet [%d][%d]\n", !counter,
-                                  (counter == u32WIDsCount - 1));
+                                  (counter == count - 1));
                        if (!wilc_wlan_cfg_get(!counter,
-                                              pstrWIDs[counter].u16WIDid,
-                                              (counter == u32WIDsCount - 1),
-                                              drvHandler)) {
+                                              wids[counter].u16WIDid,
+                                              (counter == count - 1),
+                                              drv)) {
                                ret = -1;
                                printk("[Sendconfigpkt]Get Timed out\n");
                                break;
                        }
                }
                counter = 0;
-               for (counter = 0; counter < u32WIDsCount; counter++) {
-                       pstrWIDs[counter].s32ValueSize = wilc_wlan_cfg_get_val(
-                                       pstrWIDs[counter].u16WIDid,
-                                       pstrWIDs[counter].ps8WidVal,
-                                       pstrWIDs[counter].s32ValueSize);
+               for (counter = 0; counter < count; counter++) {
+                       wids[counter].s32ValueSize = wilc_wlan_cfg_get_val(
+                                       wids[counter].u16WIDid,
+                                       wids[counter].ps8WidVal,
+                                       wids[counter].s32ValueSize);
 
                }
-       } else if (u8Mode == SET_CFG) {
-               for (counter = 0; counter < u32WIDsCount; counter++) {
-                       PRINT_D(CORECONFIG_DBG, "Sending config SET PACKET WID:%x\n", pstrWIDs[counter].u16WIDid);
+       } else if (mode == SET_CFG) {
+               for (counter = 0; counter < count; counter++) {
+                       PRINT_D(CORECONFIG_DBG, "Sending config SET PACKET WID:%x\n", wids[counter].u16WIDid);
                        if (!wilc_wlan_cfg_set(!counter,
-                                              pstrWIDs[counter].u16WIDid,
-                                              pstrWIDs[counter].ps8WidVal,
-                                              pstrWIDs[counter].s32ValueSize,
-                                              (counter == u32WIDsCount - 1),
-                                              drvHandler)) {
+                                              wids[counter].u16WIDid,
+                                              wids[counter].ps8WidVal,
+                                              wids[counter].s32ValueSize,
+                                              (counter == count - 1),
+                                              drv)) {
                                ret = -1;
                                printk("[Sendconfigpkt]Set Timed out\n");
                                break;
index 4d650888bb8db585f0907435848ec3928a369a2b..8ba30dcdb3814c3bf1eaaf8432a1f10002f7f4ef 100644 (file)
@@ -128,8 +128,7 @@ typedef struct {
        size_t ie_len;
 } tstrDisconnectNotifInfo;
 
-s32 send_config_pkt(u8 u8Mode, tstrWID *pstrWIDs,
-                   u32 u32WIDsCount, u32 drvHandler);
+s32 send_config_pkt(u8 mode, tstrWID *wids, u32 count, u32 drv);
 s32 parse_network_info(u8 *pu8MsgBuffer, tstrNetworkInfo **ppstrNetworkInfo);
 s32 DeallocateNetworkInfo(tstrNetworkInfo *pstrNetworkInfo);