OSDN Git Service

staging: rtl8192e: rename Timer to timer in ba_record struct
authorWilliam Durand <will+git@drnd.me>
Fri, 19 Feb 2021 23:11:22 +0000 (23:11 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:25:27 +0000 (09:25 +0100)
Fixes a checkpatch CHECK issue.

Signed-off-by: William Durand <will+git@drnd.me>
Link: https://lore.kernel.org/r/20210219231128.27119-2-will+git@drnd.me
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_BA.h
drivers/staging/rtl8192e/rtl819x_BAProc.c
drivers/staging/rtl8192e/rtl819x_TSProc.c

index 67574e2..61e820e 100644 (file)
@@ -49,7 +49,7 @@ union delba_param_set {
 };
 
 struct ba_record {
-       struct timer_list               Timer;
+       struct timer_list               timer;
        u8                              bValid;
        u8                              DialogToken;
        union ba_param_set BaParamSet;
index 3455fd2..f66d112 100644 (file)
@@ -15,13 +15,13 @@ static void ActivateBAEntry(struct rtllib_device *ieee, struct ba_record *pBA,
 {
        pBA->bValid = true;
        if (Time != 0)
-               mod_timer(&pBA->Timer, jiffies + msecs_to_jiffies(Time));
+               mod_timer(&pBA->timer, jiffies + msecs_to_jiffies(Time));
 }
 
 static void DeActivateBAEntry(struct rtllib_device *ieee, struct ba_record *pBA)
 {
        pBA->bValid = false;
-       del_timer_sync(&pBA->Timer);
+       del_timer_sync(&pBA->timer);
 }
 
 static u8 TxTsDeleteBA(struct rtllib_device *ieee, struct tx_ts_record *pTxTs)
@@ -522,7 +522,7 @@ void TsInitDelBA(struct rtllib_device *ieee,
 void BaSetupTimeOut(struct timer_list *t)
 {
        struct tx_ts_record *pTxTs = from_timer(pTxTs, t,
-                                             TxPendingBARecord.Timer);
+                                             TxPendingBARecord.timer);
 
        pTxTs->bAddBaReqInProgress = false;
        pTxTs->bAddBaReqDelayed = true;
@@ -532,7 +532,7 @@ void BaSetupTimeOut(struct timer_list *t)
 void TxBaInactTimeout(struct timer_list *t)
 {
        struct tx_ts_record *pTxTs = from_timer(pTxTs, t,
-                                             TxAdmittedBARecord.Timer);
+                                             TxAdmittedBARecord.timer);
        struct rtllib_device *ieee = container_of(pTxTs, struct rtllib_device,
                                     TxTsRecord[pTxTs->num]);
        TxTsDeleteBA(ieee, pTxTs);
@@ -544,7 +544,7 @@ void TxBaInactTimeout(struct timer_list *t)
 void RxBaInactTimeout(struct timer_list *t)
 {
        struct rx_ts_record *pRxTs = from_timer(pRxTs, t,
-                                             RxAdmittedBARecord.Timer);
+                                             RxAdmittedBARecord.timer);
        struct rtllib_device *ieee = container_of(pRxTs, struct rtllib_device,
                                     RxTsRecord[pRxTs->num]);
 
index 47b2669..ff65aa4 100644 (file)
@@ -151,9 +151,9 @@ void TSInitialize(struct rtllib_device *ieee)
 
                timer_setup(&pTxTS->TsAddBaTimer, TsAddBaProcess, 0);
 
-               timer_setup(&pTxTS->TxPendingBARecord.Timer, BaSetupTimeOut,
+               timer_setup(&pTxTS->TxPendingBARecord.timer, BaSetupTimeOut,
                            0);
-               timer_setup(&pTxTS->TxAdmittedBARecord.Timer,
+               timer_setup(&pTxTS->TxAdmittedBARecord.timer,
                            TxBaInactTimeout, 0);
 
                ResetTxTsEntry(pTxTS);
@@ -175,7 +175,7 @@ void TSInitialize(struct rtllib_device *ieee)
                timer_setup(&pRxTS->TsCommonInfo.InactTimer, TsInactTimeout,
                            0);
 
-               timer_setup(&pRxTS->RxAdmittedBARecord.Timer,
+               timer_setup(&pRxTS->RxAdmittedBARecord.timer,
                            RxBaInactTimeout, 0);
 
                timer_setup(&pRxTS->RxPktPendingTimer, RxPktPendingTimeout, 0);