Staging: rtl8192e: Rename variable SlotIndex
authorTree Davies <tdavies@darkphysics.net>
Sat, 6 Jan 2024 05:55:37 +0000 (21:55 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jan 2024 18:17:09 +0000 (10:17 -0800)
Rename variable SlotIndex to slot_index to fix checkpatch
warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20240106055556.430948-3-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_softmac.c

index c7a2eae2fdb90c46912d23f904d1eab5df388cb9..9b9d95ba06dfc1c7a4698e499a73389551ed76a4 100644 (file)
@@ -1852,7 +1852,7 @@ bool rtl92e_is_rx_stuck(struct net_device *dev)
        u16               RegRxCounter = rtl92e_readw(dev, 0x130);
        bool              bStuck = false;
        static u8         rx_chk_cnt;
-       u32             SlotIndex = 0, TotalRxStuckCount = 0;
+       u32             slot_index = 0, TotalRxStuckCount = 0;
        u8              i;
        u8              SilentResetRxSoltNum = 4;
 
@@ -1882,10 +1882,10 @@ bool rtl92e_is_rx_stuck(struct net_device *dev)
        }
 
 
-       SlotIndex = (priv->silent_reset_rx_slot_index++) % SilentResetRxSoltNum;
+       slot_index = (priv->silent_reset_rx_slot_index++) % SilentResetRxSoltNum;
 
        if (priv->rx_ctr == RegRxCounter) {
-               priv->silent_reset_rx_stuck_event[SlotIndex] = 1;
+               priv->silent_reset_rx_stuck_event[slot_index] = 1;
 
                for (i = 0; i < SilentResetRxSoltNum; i++)
                        TotalRxStuckCount += priv->silent_reset_rx_stuck_event[i];
@@ -1897,7 +1897,7 @@ bool rtl92e_is_rx_stuck(struct net_device *dev)
                                         priv->silent_reset_rx_stuck_event[i];
                }
        } else {
-               priv->silent_reset_rx_stuck_event[SlotIndex] = 0;
+               priv->silent_reset_rx_stuck_event[slot_index] = 0;
        }
 
        priv->rx_ctr = RegRxCounter;
index 7b5d954acf6da70bb3fb06cfe3d70faffb22a675..49c5d308097ae70bf52bda507b0c85da71014861 100644 (file)
@@ -914,17 +914,17 @@ static void _rtl92e_if_check_reset(struct net_device *dev)
 static void _rtl92e_update_rxcounts(struct r8192_priv *priv, u32 *TotalRxBcnNum,
                                    u32 *TotalRxDataNum)
 {
-       u16     SlotIndex;
+       u16     slot_index;
        u8      i;
 
        *TotalRxBcnNum = 0;
        *TotalRxDataNum = 0;
 
-       SlotIndex = (priv->rtllib->link_detect_info.SlotIndex++) %
+       slot_index = (priv->rtllib->link_detect_info.slot_index++) %
                        (priv->rtllib->link_detect_info.SlotNum);
-       priv->rtllib->link_detect_info.RxBcnNum[SlotIndex] =
+       priv->rtllib->link_detect_info.RxBcnNum[slot_index] =
                        priv->rtllib->link_detect_info.NumRecvBcnInPeriod;
-       priv->rtllib->link_detect_info.RxDataNum[SlotIndex] =
+       priv->rtllib->link_detect_info.RxDataNum[slot_index] =
                        priv->rtllib->link_detect_info.NumRecvDataInPeriod;
        for (i = 0; i < priv->rtllib->link_detect_info.SlotNum; i++) {
                *TotalRxBcnNum += priv->rtllib->link_detect_info.RxBcnNum[i];
index 7b39a1987fdd69183ee45476d33b1cd6e8568271..37bcd968a542d13d97ff350b01592f2ad101dfcf 100644 (file)
@@ -1116,7 +1116,7 @@ struct rt_link_detect {
        u32                             RxBcnNum[RT_MAX_LD_SLOT_NUM];
        u32                             RxDataNum[RT_MAX_LD_SLOT_NUM];
        u16                             SlotNum;
-       u16                             SlotIndex;
+       u16                             slot_index;
 
        u32                             num_tx_ok_in_period;
        u32                             num_rx_ok_in_period;
index 520b90abcde775a51b562c78827163317a7f2e1d..1d490704389ee5900841f73a898c67724d9071f8 100644 (file)
@@ -2072,7 +2072,7 @@ int rtllib_softmac_init(struct rtllib_device *ieee)
        for (i = 0; i < 5; i++)
                ieee->seq_ctrl[i] = 0;
 
-       ieee->link_detect_info.SlotIndex = 0;
+       ieee->link_detect_info.slot_index = 0;
        ieee->link_detect_info.SlotNum = 2;
        ieee->link_detect_info.NumRecvBcnInPeriod = 0;
        ieee->link_detect_info.NumRecvDataInPeriod = 0;