staging: rtl8192e: Rename RxRe...WinSize, RxReorder... and RxReorderDr...
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sat, 24 Sep 2022 22:03:49 +0000 (00:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Sep 2022 08:34:29 +0000 (10:34 +0200)
Rename variable RxReorderWinSize to rx_reorder_win_size,
RxReorderPendingTime to rx_reorder_pending_time and RxReorderDropCounter
to rx_reorder_drop_counter to avoid CamelCase which is not accepted by
checkpatch.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/e09ef6e2edc88e32782202589a9230204b547a9c.1664055213.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_HT.h
drivers/staging/rtl8192e/rtl819x_HTProc.c
drivers/staging/rtl8192e/rtl819x_TSProc.c
drivers/staging/rtl8192e/rtllib_rx.c

index 2dd08f0..7380df6 100644 (file)
@@ -162,9 +162,9 @@ struct rt_hi_throughput {
 
        u8 reg_rx_reorder_enable;
        u8 cur_rx_reorder_enable;
-       u8                              RxReorderWinSize;
-       u8                              RxReorderPendingTime;
-       u16                             RxReorderDropCounter;
+       u8 rx_reorder_win_size;
+       u8 rx_reorder_pending_time;
+       u16 rx_reorder_drop_counter;
 
        u8                              bIsPeerBcm;
 
index e8fcfa0..a7ccdee 100644 (file)
@@ -101,8 +101,8 @@ void HTUpdateDefaultSetting(struct rtllib_device *ieee)
        pHTInfo->reg_rt2rt_aggregation = 1;
 
        pHTInfo->reg_rx_reorder_enable = 1;
-       pHTInfo->RxReorderWinSize = 64;
-       pHTInfo->RxReorderPendingTime = 30;
+       pHTInfo->rx_reorder_win_size = 64;
+       pHTInfo->rx_reorder_pending_time = 30;
 }
 
 static u16 HTMcsToDataRate(struct rtllib_device *ieee, u8 nMcsRate)
index 34b00a7..05c7e82 100644 (file)
@@ -83,7 +83,7 @@ static void RxPktPendingTimeout(struct timer_list *t)
        if (bPktInBuf && (pRxTs->rx_timeout_indicate_seq == 0xffff)) {
                pRxTs->rx_timeout_indicate_seq = pRxTs->rx_indicate_seq;
                mod_timer(&pRxTs->rx_pkt_pending_timer,  jiffies +
-                         msecs_to_jiffies(ieee->pHTInfo->RxReorderPendingTime)
+                         msecs_to_jiffies(ieee->pHTInfo->rx_reorder_pending_time)
                          );
        }
        spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags);
index 8ec8aa7..46d75e9 100644 (file)
@@ -569,7 +569,7 @@ static void RxReorderIndicatePacket(struct rtllib_device *ieee,
 {
        struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
        struct rx_reorder_entry *pReorderEntry = NULL;
-       u8 WinSize = pHTInfo->RxReorderWinSize;
+       u8 WinSize = pHTInfo->rx_reorder_win_size;
        u16 WinEnd = 0;
        u8 index = 0;
        bool bMatchWinStart = false, bPktInBuf = false;
@@ -591,7 +591,7 @@ static void RxReorderIndicatePacket(struct rtllib_device *ieee,
                netdev_dbg(ieee->dev,
                           "Packet Drop! IndicateSeq: %d, NewSeq: %d\n",
                           pTS->rx_indicate_seq, SeqNum);
-               pHTInfo->RxReorderDropCounter++;
+               pHTInfo->rx_reorder_drop_counter++;
                {
                        int i;
 
@@ -755,7 +755,7 @@ static void RxReorderIndicatePacket(struct rtllib_device *ieee,
                netdev_dbg(ieee->dev, "%s(): SET rx timeout timer\n", __func__);
                pTS->rx_timeout_indicate_seq = pTS->rx_indicate_seq;
                mod_timer(&pTS->rx_pkt_pending_timer, jiffies +
-                         msecs_to_jiffies(pHTInfo->RxReorderPendingTime));
+                         msecs_to_jiffies(pHTInfo->rx_reorder_pending_time));
        }
        spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags);
 }