mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/5] Staging: rtl8192e: Series-B Rename struct rx_ts_record references
@ 2023-08-13  6:54 Tree Davies
  2023-08-13  6:54 ` [PATCH 1/5] Staging: rtl8192e: Rename variable pTS in function ResetRxTsEntry() Tree Davies
  2023-08-13  6:54 ` [PATCH 2/5] Staging: rtl8192e: Rename variable pRxTS in function TSInitialize() Tree Davies
  0 siblings, 2 replies; 3+ messages in thread
From: Tree Davies @ 2023-08-13  6:54 UTC (permalink / raw)
  To: gregkh, philipp.g.hortmann; +Cc: linux-staging, linux-kernel, Tree Davies

This is the Second series, Series-B, of a 3 part patch-series, which should be 
applied in the order of A, B and then C. 

This 3 part patch series fixes checkpatch warning Avoid CamelCase, for 
all references of struct rx_ts_record, and renames them to rx_ts for 
consistency and readability. Each patch renames references for a single 
function.

Thank you in advance to the reviewers
~ Tree 

Tree Davies (5):
  Staging: rtl8192e: Rename variable pTS in function ResetRxTsEntry()
  Staging: rtl8192e: Rename variable pRxTS in function TSInitialize()
  Staging: rtl8192e: Rename variable tmp in function GetTs()
  Staging: rtl8192e: Rename variable pRxTS in function RemoveTsEntry()
  Staging: rtl8192e: Rename variable pTS in function prototype
    rtllib_FlushRxTsPendingPkts()

 drivers/staging/rtl8192e/rtl819x_TSProc.c | 40 +++++++++++------------
 drivers/staging/rtl8192e/rtllib.h         |  2 +-
 2 files changed, 21 insertions(+), 21 deletions(-)

-- 
2.41.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/5] Staging: rtl8192e: Rename variable pTS in function ResetRxTsEntry()
  2023-08-13  6:54 [PATCH 0/5] Staging: rtl8192e: Series-B Rename struct rx_ts_record references Tree Davies
@ 2023-08-13  6:54 ` Tree Davies
  2023-08-13  6:54 ` [PATCH 2/5] Staging: rtl8192e: Rename variable pRxTS in function TSInitialize() Tree Davies
  1 sibling, 0 replies; 3+ messages in thread
From: Tree Davies @ 2023-08-13  6:54 UTC (permalink / raw)
  To: gregkh, philipp.g.hortmann; +Cc: linux-staging, linux-kernel, Tree Davies

Rename variable pTS in function ResetRxTsEntry() to rx_ts
to fix checkpatch warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
---
 drivers/staging/rtl8192e/rtl819x_TSProc.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/rtl8192e/rtl819x_TSProc.c b/drivers/staging/rtl8192e/rtl819x_TSProc.c
index 1c78134fc625..65521bd91b2e 100644
--- a/drivers/staging/rtl8192e/rtl819x_TSProc.c
+++ b/drivers/staging/rtl8192e/rtl819x_TSProc.c
@@ -113,12 +113,12 @@ static void ResetTxTsEntry(struct tx_ts_record *pTS)
 	rtllib_reset_ba_entry(&pTS->TxPendingBARecord);
 }
 
-static void ResetRxTsEntry(struct rx_ts_record *pTS)
+static void ResetRxTsEntry(struct rx_ts_record *rx_ts)
 {
-	ResetTsCommonInfo(&pTS->ts_common_info);
-	pTS->rx_indicate_seq = 0xffff;
-	pTS->rx_timeout_indicate_seq = 0xffff;
-	rtllib_reset_ba_entry(&pTS->rx_admitted_ba_record);
+	ResetTsCommonInfo(&rx_ts->ts_common_info);
+	rx_ts->rx_indicate_seq = 0xffff;
+	rx_ts->rx_timeout_indicate_seq = 0xffff;
+	rtllib_reset_ba_entry(&rx_ts->rx_admitted_ba_record);
 }
 
 void TSInitialize(struct rtllib_device *ieee)
-- 
2.41.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/5] Staging: rtl8192e: Rename variable pRxTS in function TSInitialize()
  2023-08-13  6:54 [PATCH 0/5] Staging: rtl8192e: Series-B Rename struct rx_ts_record references Tree Davies
  2023-08-13  6:54 ` [PATCH 1/5] Staging: rtl8192e: Rename variable pTS in function ResetRxTsEntry() Tree Davies
@ 2023-08-13  6:54 ` Tree Davies
  1 sibling, 0 replies; 3+ messages in thread
From: Tree Davies @ 2023-08-13  6:54 UTC (permalink / raw)
  To: gregkh, philipp.g.hortmann; +Cc: linux-staging, linux-kernel, Tree Davies

Rename variable pRxTS in function TSInitialize() to rx_ts
to fix checkpatch warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
---
 drivers/staging/rtl8192e/rtl819x_TSProc.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/staging/rtl8192e/rtl819x_TSProc.c b/drivers/staging/rtl8192e/rtl819x_TSProc.c
index 65521bd91b2e..423126b23acd 100644
--- a/drivers/staging/rtl8192e/rtl819x_TSProc.c
+++ b/drivers/staging/rtl8192e/rtl819x_TSProc.c
@@ -124,7 +124,7 @@ static void ResetRxTsEntry(struct rx_ts_record *rx_ts)
 void TSInitialize(struct rtllib_device *ieee)
 {
 	struct tx_ts_record *pTxTS  = ieee->TxTsRecord;
-	struct rx_ts_record *pRxTS  = ieee->RxTsRecord;
+	struct rx_ts_record *rx_ts  = ieee->RxTsRecord;
 	struct rx_reorder_entry *pRxReorderEntry = ieee->RxReorderEntry;
 	u8				count = 0;
 
@@ -151,17 +151,17 @@ void TSInitialize(struct rtllib_device *ieee)
 	INIT_LIST_HEAD(&ieee->Rx_TS_Pending_List);
 	INIT_LIST_HEAD(&ieee->Rx_TS_Unused_List);
 	for (count = 0; count < TOTAL_TS_NUM; count++) {
-		pRxTS->num = count;
-		INIT_LIST_HEAD(&pRxTS->rx_pending_pkt_list);
-		timer_setup(&pRxTS->rx_admitted_ba_record.timer,
+		rx_ts->num = count;
+		INIT_LIST_HEAD(&rx_ts->rx_pending_pkt_list);
+		timer_setup(&rx_ts->rx_admitted_ba_record.timer,
 			    rtllib_rx_ba_inact_timeout, 0);
 
-		timer_setup(&pRxTS->rx_pkt_pending_timer, RxPktPendingTimeout, 0);
+		timer_setup(&rx_ts->rx_pkt_pending_timer, RxPktPendingTimeout, 0);
 
-		ResetRxTsEntry(pRxTS);
-		list_add_tail(&pRxTS->ts_common_info.List,
+		ResetRxTsEntry(rx_ts);
+		list_add_tail(&rx_ts->ts_common_info.List,
 			      &ieee->Rx_TS_Unused_List);
-		pRxTS++;
+		rx_ts++;
 	}
 	INIT_LIST_HEAD(&ieee->RxReorder_Unused_List);
 	for (count = 0; count < REORDER_ENTRY_NUM; count++) {
-- 
2.41.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-13  6:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-13  6:54 [PATCH 0/5] Staging: rtl8192e: Series-B Rename struct rx_ts_record references Tree Davies
2023-08-13  6:54 ` [PATCH 1/5] Staging: rtl8192e: Rename variable pTS in function ResetRxTsEntry() Tree Davies
2023-08-13  6:54 ` [PATCH 2/5] Staging: rtl8192e: Rename variable pRxTS in function TSInitialize() Tree Davies

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®