OSDN Git Service

staging: rtl8192e: rename RxAdmittedBARecord to rx_admitted_ba_record in rx_ts_record...
authorWilliam Durand <will+git@drnd.me>
Mon, 1 Mar 2021 21:53:31 +0000 (21:53 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:25:32 +0000 (09:25 +0100)
Rename RxAdmittedBARecord to rx_admitted_ba_record to silence a
checkpatch warning about CamelCase.

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

index 760d143..7dfe7a0 100644 (file)
@@ -44,7 +44,7 @@ static u8 TxTsDeleteBA(struct rtllib_device *ieee, struct tx_ts_record *pTxTs)
 
 static u8 RxTsDeleteBA(struct rtllib_device *ieee, struct rx_ts_record *pRxTs)
 {
-       struct ba_record *pBa = &pRxTs->RxAdmittedBARecord;
+       struct ba_record *pBa = &pRxTs->rx_admitted_ba_record;
        u8                      bSendDELBA = false;
 
        if (pBa->b_valid) {
@@ -265,7 +265,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb)
                netdev_warn(ieee->dev, "%s(): can't get TS\n", __func__);
                goto OnADDBAReq_Fail;
        }
-       pBA = &pTS->RxAdmittedBARecord;
+       pBA = &pTS->rx_admitted_ba_record;
 
        if (pBaParamSet->field.ba_policy == BA_POLICY_DELAYED) {
                rc = ADDBA_STATUS_INVALID_PARAM;
@@ -514,7 +514,7 @@ void TsInitDelBA(struct rtllib_device *ieee,
                                 (struct rx_ts_record *)pTsCommonInfo;
                if (RxTsDeleteBA(ieee, pRxTs))
                        rtllib_send_DELBA(ieee, pTsCommonInfo->Addr,
-                                         &pRxTs->RxAdmittedBARecord,
+                                         &pRxTs->rx_admitted_ba_record,
                                          TxRxSelect, DELBA_REASON_END_BA);
        }
 }
@@ -544,12 +544,12 @@ void TxBaInactTimeout(struct timer_list *t)
 void RxBaInactTimeout(struct timer_list *t)
 {
        struct rx_ts_record *pRxTs = from_timer(pRxTs, t,
-                                             RxAdmittedBARecord.timer);
+                                             rx_admitted_ba_record.timer);
        struct rtllib_device *ieee = container_of(pRxTs, struct rtllib_device,
                                     RxTsRecord[pRxTs->num]);
 
        RxTsDeleteBA(ieee, pRxTs);
        rtllib_send_DELBA(ieee, pRxTs->ts_common_info.Addr,
-                         &pRxTs->RxAdmittedBARecord, RX_DIR,
+                         &pRxTs->rx_admitted_ba_record, RX_DIR,
                          DELBA_REASON_TIMEOUT);
 }
index 0e936c8..333bf6b 100644 (file)
@@ -47,7 +47,7 @@ struct rx_ts_record {
        u16                             rx_timeout_indicate_seq;
        struct list_head                rx_pending_pkt_list;
        struct timer_list               rx_pkt_pending_timer;
-       struct ba_record RxAdmittedBARecord;
+       struct ba_record rx_admitted_ba_record;
        u16                             RxLastSeqNum;
        u8                              RxLastFragNum;
        u8                              num;
index ae53303..c294a65 100644 (file)
@@ -126,7 +126,7 @@ static void ResetRxTsEntry(struct rx_ts_record *pTS)
        ResetTsCommonInfo(&pTS->ts_common_info);
        pTS->rx_indicate_seq = 0xffff;
        pTS->rx_timeout_indicate_seq = 0xffff;
-       ResetBaEntry(&pTS->RxAdmittedBARecord);
+       ResetBaEntry(&pTS->rx_admitted_ba_record);
 }
 
 void TSInitialize(struct rtllib_device *ieee)
@@ -175,7 +175,7 @@ void TSInitialize(struct rtllib_device *ieee)
                timer_setup(&pRxTS->ts_common_info.InactTimer, TsInactTimeout,
                            0);
 
-               timer_setup(&pRxTS->RxAdmittedBARecord.timer,
+               timer_setup(&pRxTS->rx_admitted_ba_record.timer,
                            RxBaInactTimeout, 0);
 
                timer_setup(&pRxTS->rx_pkt_pending_timer, RxPktPendingTimeout, 0);