]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
Staging: rtl8192e: Rename variable bUseShortGI
authorTree Davies <tdavies@darkphysics.net>
Wed, 12 Jun 2024 03:22:19 +0000 (20:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2024 13:25:22 +0000 (15:25 +0200)
Rename variable bUseShortGI to 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-14-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 8dec4e1b89b8603087afd59da3f005c8106ccc3e..f38d172ddb4b39a6a2197cc046a3fa18b7af99ee 100644 (file)
@@ -859,7 +859,7 @@ static u8 _rtl92e_query_is_short(u8 TxHT, u8 TxRate, struct cb_desc *tcb_desc)
 {
        u8   tmp_Short;
 
-       tmp_Short = (TxHT == 1) ? ((tcb_desc->bUseShortGI) ? 1 : 0) :
+       tmp_Short = (TxHT == 1) ? ((tcb_desc->use_short_gi) ? 1 : 0) :
                        ((tcb_desc->bUseShortPreamble) ? 1 : 0);
        if (TxHT == 1 && TxRate != DESC90_RATEMCS15)
                tmp_Short = 0;
index b48d9d416ead73f9028e9f71b1d0e264cc7c0f6c..54cf5ee628f0f91c07606b6f34c993e130b7038a 100644 (file)
@@ -112,7 +112,7 @@ struct cb_desc {
        /* Tx Firmware Related flags (10-11)*/
        u8 cts_enable:1;
        u8 rts_enable:1;
-       u8 bUseShortGI:1;
+       u8 use_short_gi:1;
        u8 bUseShortPreamble:1;
        u8 tx_enable_fw_calc_dur:1;
        u8 ampdu_enable:1;
index b5eb3968581deffde7c1afd1063c475fa608f22e..d46963fe9bbc990b66b8915bd068575149e344f0 100644 (file)
@@ -335,15 +335,15 @@ static void rtllib_query_HTCapShortGI(struct rtllib_device *ieee,
 {
        struct rt_hi_throughput *ht_info = ieee->ht_info;
 
-       tcb_desc->bUseShortGI           = false;
+       tcb_desc->use_short_gi          = false;
 
        if (!ht_info->current_ht_support || !ht_info->enable_ht)
                return;
 
        if (ht_info->cur_bw_40mhz && ht_info->cur_short_gi_40mhz)
-               tcb_desc->bUseShortGI = true;
+               tcb_desc->use_short_gi = true;
        else if (!ht_info->cur_bw_40mhz && ht_info->cur_short_gi_20mhz)
-               tcb_desc->bUseShortGI = true;
+               tcb_desc->use_short_gi = true;
 }
 
 static void rtllib_query_BandwidthMode(struct rtllib_device *ieee,