mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 15:29:16 +00:00
staging: rtl8192e: Rename Enable, cck_Rx_path and SS_TH_low
Rename variables Enable to enable, cck_Rx_path to cck_rx_path and SS_TH_low to ss_th_low to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/740487e2fd8b98bfcaa8af2e398b9aa7e320fef8.1675792435.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2c3a5d3ed3
commit
a89fbd4b9c
@ -1720,7 +1720,7 @@ void rtl92e_dm_rf_pathcheck_wq(void *data)
|
||||
else
|
||||
priv->brfpath_rxenable[i] = false;
|
||||
}
|
||||
if (!DM_RxPathSelTable.Enable)
|
||||
if (!DM_RxPathSelTable.enable)
|
||||
return;
|
||||
|
||||
_rtl92e_dm_rx_path_sel_byrssi(dev);
|
||||
@ -1731,8 +1731,8 @@ static void _rtl92e_dm_init_rx_path_selection(struct net_device *dev)
|
||||
u8 i;
|
||||
struct r8192_priv *priv = rtllib_priv(dev);
|
||||
|
||||
DM_RxPathSelTable.Enable = 1;
|
||||
DM_RxPathSelTable.SS_TH_low = RX_PATH_SEL_SS_TH_LOW;
|
||||
DM_RxPathSelTable.enable = 1;
|
||||
DM_RxPathSelTable.ss_th_low = RX_PATH_SEL_SS_TH_LOW;
|
||||
DM_RxPathSelTable.diff_TH = RX_PATH_SEL_DIFF_TH;
|
||||
if (priv->customer_id == RT_CID_819X_NETCORE)
|
||||
DM_RxPathSelTable.cck_method = CCK_Rx_Version_2;
|
||||
@ -1769,7 +1769,7 @@ static void _rtl92e_dm_rx_path_sel_byrssi(struct net_device *dev)
|
||||
return;
|
||||
|
||||
if (!cck_Rx_Path_initialized) {
|
||||
DM_RxPathSelTable.cck_Rx_path = (rtl92e_readb(dev, 0xa07)&0xf);
|
||||
DM_RxPathSelTable.cck_rx_path = (rtl92e_readb(dev, 0xa07)&0xf);
|
||||
cck_Rx_Path_initialized = 1;
|
||||
}
|
||||
|
||||
@ -1901,7 +1901,7 @@ static void _rtl92e_dm_rx_path_sel_byrssi(struct net_device *dev)
|
||||
update_cck_rx_path = 1;
|
||||
}
|
||||
|
||||
if (tmp_min_rssi < DM_RxPathSelTable.SS_TH_low && disabled_rf_cnt < 2) {
|
||||
if (tmp_min_rssi < DM_RxPathSelTable.ss_th_low && disabled_rf_cnt < 2) {
|
||||
if ((tmp_max_rssi - tmp_min_rssi) >=
|
||||
DM_RxPathSelTable.diff_TH) {
|
||||
DM_RxPathSelTable.rf_enable_rssi_th[min_rssi_index] =
|
||||
@ -1921,10 +1921,10 @@ static void _rtl92e_dm_rx_path_sel_byrssi(struct net_device *dev)
|
||||
}
|
||||
|
||||
if (update_cck_rx_path) {
|
||||
DM_RxPathSelTable.cck_Rx_path = (cck_default_Rx<<2) |
|
||||
DM_RxPathSelTable.cck_rx_path = (cck_default_Rx<<2) |
|
||||
(cck_optional_Rx);
|
||||
rtl92e_set_bb_reg(dev, rCCK0_AFESetting, 0x0f000000,
|
||||
DM_RxPathSelTable.cck_Rx_path);
|
||||
DM_RxPathSelTable.cck_rx_path);
|
||||
}
|
||||
|
||||
if (DM_RxPathSelTable.disabledRF) {
|
||||
|
@ -125,11 +125,11 @@ enum dm_dig_cs_ratio {
|
||||
};
|
||||
|
||||
struct drx_path_sel {
|
||||
u8 Enable;
|
||||
u8 enable;
|
||||
u8 cck_method;
|
||||
u8 cck_Rx_path;
|
||||
u8 cck_rx_path;
|
||||
|
||||
u8 SS_TH_low;
|
||||
u8 ss_th_low;
|
||||
u8 diff_TH;
|
||||
u8 disabledRF;
|
||||
u8 reserved;
|
||||
|
Loading…
x
Reference in New Issue
Block a user