staging:rtl8192u: Rename TsAddBaTimer - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Fri, 27 Jul 2018 17:31:12 +0000 (18:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Jul 2018 08:15:52 +0000 (10:15 +0200)
Rename the member variable TsAddBaTimer to ts_add_ba_timer. This change
clears the checkpatch issue with CamelCase naming.

The resulting changes are coding style in nature and as such should not
have any impact on runtime code execution.

Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c
drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c

index 7bd2d0f..01bf9f3 100644 (file)
@@ -597,8 +597,8 @@ int ieee80211_rx_DELBA(struct ieee80211_device *ieee, struct sk_buff *skb)
                pTxTs->using_ba = false;
                pTxTs->add_ba_req_in_progress = false;
                pTxTs->add_ba_req_delayed = false;
-               del_timer_sync(&pTxTs->TsAddBaTimer);
-               //PlatformCancelTimer(Adapter, &pTxTs->TsAddBaTimer);
+               del_timer_sync(&pTxTs->ts_add_ba_timer);
+               //PlatformCancelTimer(Adapter, &pTxTs->ts_add_ba_timer);
                TxTsDeleteBA(ieee, pTxTs);
        }
        return 0;
index 4cb53c7..b878ff5 100644 (file)
@@ -35,7 +35,7 @@ struct tx_ts_record {
        u8                              add_ba_req_in_progress;
        u8                              add_ba_req_delayed;
        u8                              using_ba;
-       struct timer_list               TsAddBaTimer;
+       struct timer_list               ts_add_ba_timer;
        u8                              num;
 };
 
index 09fb339..399e97c 100644 (file)
@@ -92,7 +92,7 @@ static void RxPktPendingTimeout(struct timer_list *t)
  ********************************************************************************************************************/
 static void TsAddBaProcess(struct timer_list *t)
 {
-       struct tx_ts_record *pTxTs = from_timer(pTxTs, t, TsAddBaTimer);
+       struct tx_ts_record *pTxTs = from_timer(pTxTs, t, ts_add_ba_timer);
        u8 num = pTxTs->num;
        struct ieee80211_device *ieee = container_of(pTxTs, struct ieee80211_device, TxTsRecord[num]);
 
@@ -150,7 +150,7 @@ void TSInitialize(struct ieee80211_device *ieee)
                            0);
                timer_setup(&pTxTS->ts_common_info.inact_timer, TsInactTimeout,
                            0);
-               timer_setup(&pTxTS->TsAddBaTimer, TsAddBaProcess, 0);
+               timer_setup(&pTxTS->ts_add_ba_timer, TsAddBaProcess, 0);
                timer_setup(&pTxTS->tx_pending_ba_record.Timer, BaSetupTimeOut,
                            0);
                timer_setup(&pTxTS->tx_admitted_ba_record.Timer,
@@ -448,7 +448,7 @@ static void RemoveTsEntry(struct ieee80211_device *ieee, struct ts_common_info *
 //#endif
        } else {
                struct tx_ts_record *pTxTS = (struct tx_ts_record *)pTs;
-               del_timer_sync(&pTxTS->TsAddBaTimer);
+               del_timer_sync(&pTxTS->ts_add_ba_timer);
        }
 }
 
@@ -526,11 +526,11 @@ void TsStartAddBaProcess(struct ieee80211_device *ieee, struct tx_ts_record *pTx
                pTxTS->add_ba_req_in_progress = true;
                if(pTxTS->add_ba_req_delayed)   {
                        IEEE80211_DEBUG(IEEE80211_DL_BA, "TsStartAddBaProcess(): Delayed Start ADDBA after 60 sec!!\n");
-                       mod_timer(&pTxTS->TsAddBaTimer,
+                       mod_timer(&pTxTS->ts_add_ba_timer,
                                  jiffies + msecs_to_jiffies(TS_ADDBA_DELAY));
                } else {
                        IEEE80211_DEBUG(IEEE80211_DL_BA,"TsStartAddBaProcess(): Immediately Start ADDBA now!!\n");
-                       mod_timer(&pTxTS->TsAddBaTimer, jiffies+10); //set 10 ticks
+                       mod_timer(&pTxTS->ts_add_ba_timer, jiffies+10); //set 10 ticks
                }
        } else {
                IEEE80211_DEBUG(IEEE80211_DL_ERR, "%s()==>BA timer is already added\n", __func__);