]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Staging: rtl8192e: Rename variable bCTSEnable
authorTree Davies <tdavies@darkphysics.net>
Wed, 12 Jun 2024 03:22:13 +0000 (20:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2024 13:25:21 +0000 (15:25 +0200)
Rename variable bCTSEnable to cts_enable
to fix checkpatch warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20240612032230.9738-8-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_tx.c

index 0263f3d7179cbf9a9238aec07d1f8782fe8b444b..4117530f19b1cc7ed050a2f97cb496aeb97691df 100644 (file)
@@ -893,7 +893,7 @@ void  rtl92e_fill_tx_desc(struct net_device *dev, struct tx_desc *pdesc,
        }
 
        pTxFwInfo->RtsEnable =  (cb_desc->rts_enable) ? 1 : 0;
-       pTxFwInfo->CtsEnable = (cb_desc->bCTSEnable) ? 1 : 0;
+       pTxFwInfo->CtsEnable = (cb_desc->cts_enable) ? 1 : 0;
        pTxFwInfo->RtsSTBC = (cb_desc->bRTSSTBC) ? 1 : 0;
        pTxFwInfo->RtsHT = (cb_desc->rts_rate & 0x80) ? 1 : 0;
        pTxFwInfo->RtsRate = _rtl92e_rate_mgn_to_hw(cb_desc->rts_rate);
index 0131765e451e2a08528b8531b0454cb9b6a481e0..2282c709654dc548c563f98e1b311f66632802f3 100644 (file)
@@ -110,7 +110,7 @@ struct cb_desc {
        u8 nStuckCount;
 
        /* Tx Firmware Related flags (10-11)*/
-       u8 bCTSEnable:1;
+       u8 cts_enable:1;
        u8 rts_enable:1;
        u8 bUseShortGI:1;
        u8 bUseShortPreamble:1;
index 8c90725386887c7adce55774a8b8c9ca99eb5e0f..c0fe00d0df026105a7f6f3b5aab8d9f5d3aea5cb 100644 (file)
@@ -374,7 +374,7 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee,
 
        tcb_desc->bRTSSTBC                      = false;
        tcb_desc->bRTSUseShortGI                = false;
-       tcb_desc->bCTSEnable                    = false;
+       tcb_desc->cts_enable                    = false;
        tcb_desc->RTSSC                         = 0;
        tcb_desc->rts_bw                        = false;
 
@@ -390,7 +390,7 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee,
                        tcb_desc->rts_rate = MGN_24M;
                } else if (ieee->current_network.buseprotection) {
                        tcb_desc->rts_enable = true;
-                       tcb_desc->bCTSEnable = true;
+                       tcb_desc->cts_enable = true;
                        tcb_desc->rts_rate = MGN_24M;
                }
                return;
@@ -400,7 +400,7 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee,
 
        while (true) {
                if (ht_info->iot_action & HT_IOT_ACT_FORCED_CTS2SELF) {
-                       tcb_desc->bCTSEnable    = true;
+                       tcb_desc->cts_enable    = true;
                        tcb_desc->rts_rate  =   MGN_24M;
                        tcb_desc->rts_enable = true;
                        break;
@@ -412,7 +412,7 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee,
                }
                if (ieee->current_network.buseprotection) {
                        tcb_desc->rts_enable = true;
-                       tcb_desc->bCTSEnable = true;
+                       tcb_desc->cts_enable = true;
                        tcb_desc->rts_rate = MGN_24M;
                        break;
                }
@@ -444,7 +444,7 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee,
        return;
 NO_PROTECTION:
        tcb_desc->rts_enable    = false;
-       tcb_desc->bCTSEnable    = false;
+       tcb_desc->cts_enable    = false;
        tcb_desc->rts_rate      = 0;
        tcb_desc->RTSSC         = 0;
        tcb_desc->rts_bw        = false;