Skip to content

Commit 4256e50

Browse files
nixyogigregkh
authored andcommitted
staging: rtl8192e: Rename variable Bandwidth to avoid CamelCase
Rename variable Bandwidth to bandwidth to avoid CamelCase which is not accepted by checkpatch.pl . Signed-off-by: Yogesh Hegde <[email protected]> Tested-by: Philipp Hortmann <[email protected]> Link: https://lore.kernel.org/r/20220928180350.GA82748@zephyrus Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 006d2f4 commit 4256e50

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "r8190P_rtl8256.h"
1111

1212
void rtl92e_set_bandwidth(struct net_device *dev,
13-
enum ht_channel_width Bandwidth)
13+
enum ht_channel_width bandwidth)
1414
{
1515
u8 eRFPath;
1616
struct r8192_priv *priv = rtllib_priv(dev);
@@ -25,7 +25,7 @@ void rtl92e_set_bandwidth(struct net_device *dev,
2525
if (!rtl92e_is_legal_rf_path(dev, eRFPath))
2626
continue;
2727

28-
switch (Bandwidth) {
28+
switch (bandwidth) {
2929
case HT_CHANNEL_WIDTH_20:
3030
rtl92e_set_rf_reg(dev, (enum rf90_radio_path)eRFPath,
3131
0x0b, bMask12Bits, 0x100);
@@ -44,7 +44,7 @@ void rtl92e_set_bandwidth(struct net_device *dev,
4444
break;
4545
default:
4646
netdev_err(dev, "%s(): Unknown bandwidth: %#X\n",
47-
__func__, Bandwidth);
47+
__func__, bandwidth);
4848
break;
4949
}
5050
}

drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#define RTL819X_TOTAL_RF_PATH 2
1111
void rtl92e_set_bandwidth(struct net_device *dev,
12-
enum ht_channel_width Bandwidth);
12+
enum ht_channel_width bandwidth);
1313
bool rtl92e_config_rf(struct net_device *dev);
1414
void rtl92e_set_cck_tx_power(struct net_device *dev, u8 powerlevel);
1515
void rtl92e_set_ofdm_tx_power(struct net_device *dev, u8 powerlevel);

drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ static void _rtl92e_set_bw_mode_work_item(struct net_device *dev)
11941194
priv->SetBWModeInProgress = false;
11951195
}
11961196

1197-
void rtl92e_set_bw_mode(struct net_device *dev, enum ht_channel_width Bandwidth,
1197+
void rtl92e_set_bw_mode(struct net_device *dev, enum ht_channel_width bandwidth,
11981198
enum ht_extchnl_offset Offset)
11991199
{
12001200
struct r8192_priv *priv = rtllib_priv(dev);
@@ -1206,7 +1206,7 @@ void rtl92e_set_bw_mode(struct net_device *dev, enum ht_channel_width Bandwidth,
12061206
atomic_inc(&(priv->rtllib->atm_swbw));
12071207
priv->SetBWModeInProgress = true;
12081208

1209-
priv->CurrentChannelBW = Bandwidth;
1209+
priv->CurrentChannelBW = bandwidth;
12101210

12111211
if (Offset == HT_EXTCHNL_OFFSET_LOWER)
12121212
priv->nCur40MhzPrimeSC = HAL_PRIME_CHNL_OFFSET_UPPER;

drivers/staging/rtl8192e/rtl8192e/r8192E_phy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ u8 rtl92e_config_rf_path(struct net_device *dev, enum rf90_radio_path eRFPath);
7575

7676
u8 rtl92e_set_channel(struct net_device *dev, u8 channel);
7777
void rtl92e_set_bw_mode(struct net_device *dev,
78-
enum ht_channel_width Bandwidth,
78+
enum ht_channel_width bandwidth,
7979
enum ht_extchnl_offset Offset);
8080
void rtl92e_init_gain(struct net_device *dev, u8 Operation);
8181

drivers/staging/rtl8192e/rtl819x_HTProc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ static u8 HTFilterMCSRate(struct rtllib_device *ieee, u8 *pSupportMCS,
503503
}
504504

505505
void HTSetConnectBwMode(struct rtllib_device *ieee,
506-
enum ht_channel_width Bandwidth,
506+
enum ht_channel_width bandwidth,
507507
enum ht_extchnl_offset Offset);
508508

509509
void HTOnAssocRsp(struct rtllib_device *ieee)
@@ -850,7 +850,7 @@ static void HTSetConnectBwModeCallback(struct rtllib_device *ieee)
850850
}
851851

852852
void HTSetConnectBwMode(struct rtllib_device *ieee,
853-
enum ht_channel_width Bandwidth,
853+
enum ht_channel_width bandwidth,
854854
enum ht_extchnl_offset Offset)
855855
{
856856
struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
@@ -859,13 +859,13 @@ void HTSetConnectBwMode(struct rtllib_device *ieee,
859859
return;
860860

861861
if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev))
862-
Bandwidth = HT_CHANNEL_WIDTH_20;
862+
bandwidth = HT_CHANNEL_WIDTH_20;
863863

864864
if (pHTInfo->sw_bw_in_progress) {
865865
pr_info("%s: sw_bw_in_progress!!\n", __func__);
866866
return;
867867
}
868-
if (Bandwidth == HT_CHANNEL_WIDTH_20_40) {
868+
if (bandwidth == HT_CHANNEL_WIDTH_20_40) {
869869
if (ieee->current_network.channel < 2 &&
870870
Offset == HT_EXTCHNL_OFFSET_LOWER)
871871
Offset = HT_EXTCHNL_OFFSET_NO_EXT;

drivers/staging/rtl8192e/rtllib.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,7 +1765,7 @@ struct rtllib_device {
17651765
/* check whether Tx hw resource available */
17661766
short (*check_nic_enough_desc)(struct net_device *dev, int queue_index);
17671767
void (*SetBWModeHandler)(struct net_device *dev,
1768-
enum ht_channel_width Bandwidth,
1768+
enum ht_channel_width bandwidth,
17691769
enum ht_extchnl_offset Offset);
17701770
bool (*GetNmodeSupportBySecCfg)(struct net_device *dev);
17711771
void (*SetWirelessMode)(struct net_device *dev, u8 wireless_mode);
@@ -2073,7 +2073,7 @@ int rtllib_wx_get_rts(struct rtllib_device *ieee, struct iw_request_info *info,
20732073
#define MAX_RECEIVE_BUFFER_SIZE 9100
20742074

20752075
void HTSetConnectBwMode(struct rtllib_device *ieee,
2076-
enum ht_channel_width Bandwidth,
2076+
enum ht_channel_width bandwidth,
20772077
enum ht_extchnl_offset Offset);
20782078
void HTUpdateDefaultSetting(struct rtllib_device *ieee);
20792079
void HTConstructCapabilityElement(struct rtllib_device *ieee,

0 commit comments

Comments
 (0)