[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zf4fhSomoYzCE4gW@ljfp.xyz>
Date: Fri, 22 Mar 2024 21:17:09 -0300
From: Lautaro Javier Fernandez Pricco <ljfp@...p.xyz>
To: Larry Finger <Larry.Finger@...inger.net>,
Florian Schilhabel <florian.c.schilhabel@...glemail.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
outreachy <outreachy@...ts.linux.dev>
Cc: linux-staging <linux-staging@...ts.linux.dev>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: [PATCH] staging: rtl8712: Rename variable bw_40MHz_en
The bw_40MHz_en variable triggered an 'Avoid
CamelCase' warning from checkpatch.pl. This patch addresses said warning by
renaming the variable to bw_40mhz_en.
Reported by checkpatch:
CHECK: Avoid CamelCase: <bw_40MHz_en>
Signed-off-by: Lautaro Javier Fernandez Pricco <ljfp@...p.xyz>
---
drivers/staging/rtl8712/hal_init.c | 2 +-
drivers/staging/rtl8712/rtl8712_hal.h | 2 +-
drivers/staging/rtl8723bs/core/rtw_mlme.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8712/hal_init.c b/drivers/staging/rtl8712/hal_init.c
index 1148075f0cd6..efea4f97488c 100644
--- a/drivers/staging/rtl8712/hal_init.c
+++ b/drivers/staging/rtl8712/hal_init.c
@@ -98,7 +98,7 @@ static void fill_fwpriv(struct _adapter *adapter, struct fw_priv *fwpriv)
/* todo: check if needs endian conversion */
fwpriv->hci_sel = RTL8712_HCI_TYPE_72USB;
fwpriv->usb_ep_num = (u8)dvobj->nr_endpoint;
- fwpriv->bw_40MHz_en = regpriv->cbw40_enable;
+ fwpriv->bw_40mhz_en = regpriv->cbw40_enable;
switch (regpriv->rf_config) {
case RTL8712_RF_1T1R:
fwpriv->rf_config = RTL8712_RFC_1T1R;
diff --git a/drivers/staging/rtl8712/rtl8712_hal.h b/drivers/staging/rtl8712/rtl8712_hal.h
index 66cc4645e2d1..3df687fce79d 100644
--- a/drivers/staging/rtl8712/rtl8712_hal.h
+++ b/drivers/staging/rtl8712/rtl8712_hal.h
@@ -85,7 +85,7 @@ struct fw_priv { /*8-bytes alignment required*/
unsigned char rsvd025;
/*--- long word 3 ----*/
unsigned char qos_en; /*1: QoS enable*/
- unsigned char bw_40MHz_en; /*1: 40MHz BW enable*/
+ unsigned char bw_40mhz_en; /*1: 40MHz BW enable*/
unsigned char AMSDU2AMPDU_en; /*1: 4181 convert AMSDU to AMPDU,
* 0: disable
*/
diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c
index bfb27f902753..0e5b07ad5a8f 100644
--- a/drivers/staging/rtl8723bs/core/rtw_mlme.c
+++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c
@@ -2331,7 +2331,7 @@ unsigned int rtw_restructure_ht_ie(struct adapter *padapter, u8 *in_ie, u8 *out_
}
}
- /* to disable 40M Hz support while gd_bw_40MHz_en = 0 */
+ /* to disable 40 MHz support while gd_bw_40mhz_en = 0 */
if (channel > 14) {
if ((pregistrypriv->bw_mode & 0xf0) > 0)
cbw40_enable = 1;
--
2.34.1
Powered by blists - more mailing lists