staging: wilc1000: renames struct connect_resp_info variables
authorLeo Kim <leo.kim@atmel.com>
Thu, 4 Feb 2016 09:24:09 +0000 (18:24 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 01:34:58 +0000 (17:34 -0800)
This patch renames to avoid camelcase and remove prefix names,
changes follow are:
 - u16capability to capability
 - u16ConnectStatus to status
 - u16AssocID to assoc_id
 - pu8RespIEs to ies
 - u16RespIEsLen to ies_len

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/coreconfigurator.c
drivers/staging/wilc1000/coreconfigurator.h
drivers/staging/wilc1000/host_interface.c

index c456a324fddc469c42624e5d8b6b6b57e5629eae..e9f6262bb0a65239a174b44f6f2834ec5d9a3683 100644 (file)
@@ -367,19 +367,19 @@ s32 wilc_parse_assoc_resp_info(u8 *buffer, u32 buffer_len,
 
        assoc_resp_len = (u16)buffer_len;
 
-       connect_resp_info->u16ConnectStatus = get_asoc_status(buffer);
-       if (connect_resp_info->u16ConnectStatus == SUCCESSFUL_STATUSCODE) {
-               connect_resp_info->u16capability = get_assoc_resp_cap_info(buffer);
-               connect_resp_info->u16AssocID = get_asoc_id(buffer);
+       connect_resp_info->status = get_asoc_status(buffer);
+       if (connect_resp_info->status == SUCCESSFUL_STATUSCODE) {
+               connect_resp_info->capability = get_assoc_resp_cap_info(buffer);
+               connect_resp_info->assoc_id = get_asoc_id(buffer);
 
                ies = &buffer[CAP_INFO_LEN + STATUS_CODE_LEN + AID_LEN];
                ies_len = assoc_resp_len - (CAP_INFO_LEN + STATUS_CODE_LEN + AID_LEN);
 
-               connect_resp_info->pu8RespIEs = kmemdup(ies, ies_len, GFP_KERNEL);
-               if (!connect_resp_info->pu8RespIEs)
+               connect_resp_info->ies = kmemdup(ies, ies_len, GFP_KERNEL);
+               if (!connect_resp_info->ies)
                        return -ENOMEM;
 
-               connect_resp_info->u16RespIEsLen = ies_len;
+               connect_resp_info->ies_len = ies_len;
        }
 
        *ret_connect_resp_info = connect_resp_info;
index 611486bec32dbdf1160034f35bee329521ca6c2f..aa9aee68e064745400af4240768101b5206b6009 100644 (file)
@@ -98,11 +98,11 @@ typedef struct {
 } tstrNetworkInfo;
 
 struct connect_resp_info {
-       u16 u16capability;
-       u16 u16ConnectStatus;
-       u16 u16AssocID;
-       u8 *pu8RespIEs;
-       u16 u16RespIEsLen;
+       u16 capability;
+       u16 status;
+       u16 assoc_id;
+       u8 *ies;
+       u16 ies_len;
 };
 
 typedef struct {
index 513b1f01617786e2af08cef85c63c91aaa209e14..992008b14704a236d33ac71374ac951f83b9025a 100644 (file)
@@ -1489,19 +1489,19 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif,
                                        if (s32Err) {
                                                PRINT_ER("wilc_parse_assoc_resp_info() returned error %d\n", s32Err);
                                        } else {
-                                               strConnectInfo.u16ConnectStatus = pstrConnectRespInfo->u16ConnectStatus;
+                                               strConnectInfo.u16ConnectStatus = pstrConnectRespInfo->status;
 
                                                if (strConnectInfo.u16ConnectStatus == SUCCESSFUL_STATUSCODE) {
-                                                       if (pstrConnectRespInfo->pu8RespIEs) {
-                                                               strConnectInfo.u16RespIEsLen = pstrConnectRespInfo->u16RespIEsLen;
-                                                               strConnectInfo.pu8RespIEs = kmalloc(pstrConnectRespInfo->u16RespIEsLen, GFP_KERNEL);
-                                                               memcpy(strConnectInfo.pu8RespIEs, pstrConnectRespInfo->pu8RespIEs,
-                                                                           pstrConnectRespInfo->u16RespIEsLen);
+                                                       if (pstrConnectRespInfo->ies) {
+                                                               strConnectInfo.u16RespIEsLen = pstrConnectRespInfo->ies_len;
+                                                               strConnectInfo.pu8RespIEs = kmalloc(pstrConnectRespInfo->ies_len, GFP_KERNEL);
+                                                               memcpy(strConnectInfo.pu8RespIEs, pstrConnectRespInfo->ies,
+                                                                      pstrConnectRespInfo->ies_len);
                                                        }
                                                }
 
                                                if (pstrConnectRespInfo) {
-                                                       kfree(pstrConnectRespInfo->pu8RespIEs);
+                                                       kfree(pstrConnectRespInfo->ies);
                                                        kfree(pstrConnectRespInfo);
                                                }
                                        }