Skip to content

Commit 44414e6

Browse files
Philipp Hortmanngregkh
authored andcommitted
staging: rtl8192e: Rename diff_TH and disabledRF
Rename variables diff_TH to diff_th and disabledRF to disabled_rf to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Philipp Hortmann <[email protected]> Link: https://lore.kernel.org/r/2b95586ed460f90c98721a429aced1ffaf258e49.1675792435.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a89fbd4 commit 44414e6

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

drivers/staging/rtl8192e/rtl8192e/rtl_dm.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1733,12 +1733,12 @@ static void _rtl92e_dm_init_rx_path_selection(struct net_device *dev)
17331733

17341734
DM_RxPathSelTable.enable = 1;
17351735
DM_RxPathSelTable.ss_th_low = RX_PATH_SEL_SS_TH_LOW;
1736-
DM_RxPathSelTable.diff_TH = RX_PATH_SEL_DIFF_TH;
1736+
DM_RxPathSelTable.diff_th = RX_PATH_SEL_DIFF_TH;
17371737
if (priv->customer_id == RT_CID_819X_NETCORE)
17381738
DM_RxPathSelTable.cck_method = CCK_Rx_Version_2;
17391739
else
17401740
DM_RxPathSelTable.cck_method = CCK_Rx_Version_1;
1741-
DM_RxPathSelTable.disabledRF = 0;
1741+
DM_RxPathSelTable.disabled_rf = 0;
17421742
for (i = 0; i < 4; i++) {
17431743
DM_RxPathSelTable.rf_rssi[i] = 50;
17441744
DM_RxPathSelTable.cck_pwdb_sta[i] = -64;
@@ -1773,8 +1773,8 @@ static void _rtl92e_dm_rx_path_sel_byrssi(struct net_device *dev)
17731773
cck_Rx_Path_initialized = 1;
17741774
}
17751775

1776-
DM_RxPathSelTable.disabledRF = 0xf;
1777-
DM_RxPathSelTable.disabledRF &= ~(rtl92e_readb(dev, 0xc04));
1776+
DM_RxPathSelTable.disabled_rf = 0xf;
1777+
DM_RxPathSelTable.disabled_rf &= ~(rtl92e_readb(dev, 0xc04));
17781778

17791779
if (priv->rtllib->mode == WIRELESS_MODE_B)
17801780
DM_RxPathSelTable.cck_method = CCK_Rx_Version_2;
@@ -1903,7 +1903,7 @@ static void _rtl92e_dm_rx_path_sel_byrssi(struct net_device *dev)
19031903

19041904
if (tmp_min_rssi < DM_RxPathSelTable.ss_th_low && disabled_rf_cnt < 2) {
19051905
if ((tmp_max_rssi - tmp_min_rssi) >=
1906-
DM_RxPathSelTable.diff_TH) {
1906+
DM_RxPathSelTable.diff_th) {
19071907
DM_RxPathSelTable.rf_enable_rssi_th[min_rssi_index] =
19081908
tmp_max_rssi+5;
19091909
rtl92e_set_bb_reg(dev, rOFDM0_TRxPathEnable,
@@ -1927,9 +1927,9 @@ static void _rtl92e_dm_rx_path_sel_byrssi(struct net_device *dev)
19271927
DM_RxPathSelTable.cck_rx_path);
19281928
}
19291929

1930-
if (DM_RxPathSelTable.disabledRF) {
1930+
if (DM_RxPathSelTable.disabled_rf) {
19311931
for (i = 0; i < 4; i++) {
1932-
if ((DM_RxPathSelTable.disabledRF>>i) & 0x1) {
1932+
if ((DM_RxPathSelTable.disabled_rf >> i) & 0x1) {
19331933
if (tmp_max_rssi >=
19341934
DM_RxPathSelTable.rf_enable_rssi_th[i]) {
19351935
rtl92e_set_bb_reg(dev,

drivers/staging/rtl8192e/rtl8192e/rtl_dm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ struct drx_path_sel {
130130
u8 cck_rx_path;
131131

132132
u8 ss_th_low;
133-
u8 diff_TH;
134-
u8 disabledRF;
133+
u8 diff_th;
134+
u8 disabled_rf;
135135
u8 reserved;
136136

137137
u8 rf_rssi[4];

0 commit comments

Comments
 (0)