Staging: rtl8192e: Rename variable TsCommonInfo
authorTree Davies <tdavies@darkphysics.net>
Mon, 27 Nov 2023 05:43:05 +0000 (21:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Nov 2023 13:59:20 +0000 (13:59 +0000)
Rename variable TsCommonInfo to ts_common_info to fix checkpatch
warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231127054305.148276-16-tdavies@darkphysics.net
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 b00d0f7c75177ab8245fec814faf4fb1fda74bac..58a950ef77ce3975842af0903f0a9f4d45f959c7 100644 (file)
@@ -474,14 +474,14 @@ void rtllib_ts_init_add_ba(struct rtllib_device *ieee, struct tx_ts_record *ts,
        ba->dialog_token++;
        ba->ba_param_set.field.amsdu_support = 0;
        ba->ba_param_set.field.ba_policy = policy;
-       ba->ba_param_set.field.tid = ts->TsCommonInfo.tspec.ucTSID;
+       ba->ba_param_set.field.tid = ts->ts_common_info.tspec.ucTSID;
        ba->ba_param_set.field.buffer_size = 32;
        ba->ba_timeout_value = 0;
        ba->ba_start_seq_ctrl.field.seq_num = (ts->tx_cur_seq + 3) % 4096;
 
        activate_ba_entry(ba, BA_SETUP_TIMEOUT);
 
-       rtllib_send_ADDBAReq(ieee, ts->TsCommonInfo.addr, ba);
+       rtllib_send_ADDBAReq(ieee, ts->ts_common_info.addr, ba);
 }
 
 void rtllib_ts_init_del_ba(struct rtllib_device *ieee,
@@ -525,7 +525,7 @@ void rtllib_tx_ba_inact_timeout(struct timer_list *t)
        struct rtllib_device *ieee = container_of(ts, struct rtllib_device,
                                     TxTsRecord[ts->num]);
        tx_ts_delete_ba(ieee, ts);
-       rtllib_send_DELBA(ieee, ts->TsCommonInfo.addr,
+       rtllib_send_DELBA(ieee, ts->ts_common_info.addr,
                          &ts->tx_admitted_ba_record, TX_DIR,
                          DELBA_REASON_TIMEOUT);
 }
index 8e22c717fb2746d0740717e9faac2856e22f35d1..31f7cfbb3aa529d98d83a7ca96004e28973c38d8 100644 (file)
@@ -23,7 +23,7 @@ struct ts_common_info {
 };
 
 struct tx_ts_record {
-       struct ts_common_info TsCommonInfo;
+       struct ts_common_info ts_common_info;
        u16                             tx_cur_seq;
        struct ba_record tx_pending_ba_record;
        struct ba_record tx_admitted_ba_record;
index f96538f3e4eeed5c90193db871cc3bac50ec0129..bec73bc53dd085c35f65381b2ddbd23effce3069 100644 (file)
@@ -99,7 +99,7 @@ static void ResetTsCommonInfo(struct ts_common_info *ts_common_info)
 
 static void ResetTxTsEntry(struct tx_ts_record *ts)
 {
-       ResetTsCommonInfo(&ts->TsCommonInfo);
+       ResetTsCommonInfo(&ts->ts_common_info);
        ts->tx_cur_seq = 0;
        ts->add_ba_req_in_progress = false;
        ts->add_ba_req_delayed = false;
@@ -138,7 +138,7 @@ void rtllib_ts_init(struct rtllib_device *ieee)
                            rtllib_tx_ba_inact_timeout, 0);
 
                ResetTxTsEntry(pTxTS);
-               list_add_tail(&pTxTS->TsCommonInfo.List,
+               list_add_tail(&pTxTS->ts_common_info.List,
                                &ieee->Tx_TS_Unused_List);
                pTxTS++;
        }
@@ -292,7 +292,7 @@ bool rtllib_get_ts(struct rtllib_device *ieee, struct ts_common_info **ppTS,
                        struct tx_ts_record *tmp =
                                container_of(*ppTS,
                                struct tx_ts_record,
-                               TsCommonInfo);
+                               ts_common_info);
                        ResetTxTsEntry(tmp);
                } else {
                        struct rx_ts_record *ts =