Rename following members of struct chnl_txpow_triple to avoid
checkpatch warning: Avoid CamelCase

        FirstChnl -> first_chnl
        NumChnls -> num_chnls
        MaxTxPwrInDbm -> max_tx_power

Signed-off-by: Himadri Pandya <himadri18...@gmail.com>
---
 drivers/staging/rtl8192e/dot11d.c | 16 ++++++++--------
 drivers/staging/rtl8192e/dot11d.h |  6 +++---
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/drivers/staging/rtl8192e/dot11d.c 
b/drivers/staging/rtl8192e/dot11d.c
index be9a21062a2e..711e8264183e 100644
--- a/drivers/staging/rtl8192e/dot11d.c
+++ b/drivers/staging/rtl8192e/dot11d.c
@@ -127,25 +127,25 @@ void Dot11d_UpdateCountryIe(struct rtllib_device *dev, u8 
*pTaddr,
        NumTriples = (CoutryIeLen - 3) / 3;
        pTriple = (struct chnl_txpow_triple *)(pCoutryIe + 3);
        for (i = 0; i < NumTriples; i++) {
-               if (MaxChnlNum >= pTriple->FirstChnl) {
+               if (MaxChnlNum >= pTriple->first_chnl) {
                        netdev_info(dev->dev,
                                    "%s: Invalid country IE, skip it......1\n",
                                    __func__);
                        return;
                }
-               if (MAX_CHANNEL_NUMBER < (pTriple->FirstChnl +
-                   pTriple->NumChnls)) {
+               if (MAX_CHANNEL_NUMBER < (pTriple->first_chnl +
+                   pTriple->num_chnls)) {
                        netdev_info(dev->dev,
                                    "%s: Invalid country IE, skip it......2\n",
                                    __func__);
                        return;
                }
 
-               for (j = 0; j < pTriple->NumChnls; j++) {
-                       pDot11dInfo->channel_map[pTriple->FirstChnl + j] = 1;
-                       pDot11dInfo->MaxTxPwrDbmList[pTriple->FirstChnl + j] =
-                                                pTriple->MaxTxPowerInDbm;
-                       MaxChnlNum = pTriple->FirstChnl + j;
+               for (j = 0; j < pTriple->num_chnls; j++) {
+                       pDot11dInfo->channel_map[pTriple->first_chnl + j] = 1;
+                       pDot11dInfo->MaxTxPwrDbmList[pTriple->first_chnl + j] =
+                                                pTriple->max_tx_power;
+                       MaxChnlNum = pTriple->first_chnl + j;
                }
 
                pTriple = (struct chnl_txpow_triple *)((u8 *)pTriple + 3);
diff --git a/drivers/staging/rtl8192e/dot11d.h 
b/drivers/staging/rtl8192e/dot11d.h
index 7fa3c4d963c4..921e83e3dd47 100644
--- a/drivers/staging/rtl8192e/dot11d.h
+++ b/drivers/staging/rtl8192e/dot11d.h
@@ -18,9 +18,9 @@
 #include "rtllib.h"
 
 struct chnl_txpow_triple {
-       u8 FirstChnl;
-       u8  NumChnls;
-       u8  MaxTxPowerInDbm;
+       u8 first_chnl;
+       u8 num_chnls;
+       u8 max_tx_power;
 };
 
 enum dot11d_state {
-- 
2.17.1

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to