]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Staging: rtl8192e: Rename variable bRTSUseShortGI
authorTree Davies <tdavies@darkphysics.net>
Wed, 12 Jun 2024 03:22:14 +0000 (20:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2024 13:25:22 +0000 (15:25 +0200)
Rename variable bRTSUseShortGI to rts_use_short_gi
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-9-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 4117530f19b1cc7ed050a2f97cb496aeb97691df..a52db6b1fdb5f8103a1c9b8469960084b689d8ef 100644 (file)
@@ -901,7 +901,7 @@ void  rtl92e_fill_tx_desc(struct net_device *dev, struct tx_desc *pdesc,
        pTxFwInfo->RtsSubcarrier = cb_desc->RTSSC;
        pTxFwInfo->RtsShort = (pTxFwInfo->RtsHT == 0) ?
                          (cb_desc->rts_use_short_preamble ? 1 : 0) :
-                         (cb_desc->bRTSUseShortGI ? 1 : 0);
+                         (cb_desc->rts_use_short_gi ? 1 : 0);
        if (priv->current_chnl_bw == HT_CHANNEL_WIDTH_20_40) {
                if (cb_desc->bPacketBW) {
                        pTxFwInfo->TxBandwidth = 1;
index 2282c709654dc548c563f98e1b311f66632802f3..bd18d866ce225141ee57958a93e4b97830720be3 100644 (file)
@@ -122,7 +122,7 @@ struct cb_desc {
        u8 rts_bw:1;
        u8 bPacketBW:1;
        u8 rts_use_short_preamble:1;
-       u8 bRTSUseShortGI:1;
+       u8 rts_use_short_gi:1;
        u8 multicast:1;
        u8 bBroadcast:1;
        u8 drv_agg_enable:1;
index c0fe00d0df026105a7f6f3b5aab8d9f5d3aea5cb..d376c35a5ad797dd9ace7a1f46a37c8446830877 100644 (file)
@@ -373,7 +373,7 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee,
        struct rt_hi_throughput *ht_info;
 
        tcb_desc->bRTSSTBC                      = false;
-       tcb_desc->bRTSUseShortGI                = false;
+       tcb_desc->rts_use_short_gi              = false;
        tcb_desc->cts_enable                    = false;
        tcb_desc->RTSSC                         = 0;
        tcb_desc->rts_bw                        = false;