[PATCH v2 1/8] staging: rtl8723bs: rename RegEnableTxPowerLimit to reg_enable_tx_power_limit

Ethan Tidmore
2026-01-27T01:21:38Z

Rename RegEnableTxPowerLimit to reg_enable_tx_power_limit to avoid
CamelCase.

Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
---
drivers/staging/rtl8723bs/hal/hal_com_phycfg.c | 4 ++--
.../staging/rtl8723bs/hal/rtl8723b_phycfg.c | 18 +++++++-----------
drivers/staging/rtl8723bs/include/drv_types.h | 2 +-
drivers/staging/rtl8723bs/os_dep/os_intfs.c | 2 +-
4 files changed, 11 insertions(+), 15 deletions(-)

diff --git a/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c b/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
index cd76e26e868f..403fb485b6b4 100644
--- a/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
+++ b/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
@@ -690,9 +690,9 @@ s8 phy_get_tx_pwr_lmt(struct adapter *adapter, u32 reg_pwr_tbl_sel,
struct hal_com_data *hal_data = GET_HAL_DATA(adapter);
s8 limits[10] = {0}; u8 i = 0;

- if (((adapter->registrypriv.RegEnableTxPowerLimit == 2) &&
+ if (((adapter->registrypriv.reg_enable_tx_power_limit == 2) &&
(hal_data->EEPROMRegulatory != 1)) ||
- (adapter->registrypriv.RegEnableTxPowerLimit == 0))
+ (adapter->registrypriv.reg_enable_tx_power_limit == 0))
return MAX_POWER_INDEX;

switch (adapter->registrypriv.RegPwrTblSel) {
diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c b/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c
index d8709d40cb33..e89e34a6ad8c 100644
--- a/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c
+++ b/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c
@@ -338,13 +338,10 @@ static int phy_BB8723b_Config_ParaFile(struct adapter *Adapter)

/* Read Tx Power Limit File */
PHY_InitTxPowerLimit(Adapter);
- if (
- Adapter->registrypriv.RegEnableTxPowerLimit == 1 ||
- (Adapter->registrypriv.RegEnableTxPowerLimit == 2 && pHalData->EEPROMRegulatory == 1)
- ) {
- ODM_ConfigRFWithHeaderFile(&pHalData->odmpriv,
- CONFIG_RF_TXPWR_LMT, 0);
- }
+ if (Adapter->registrypriv.reg_enable_tx_power_limit == 1 ||
+ (Adapter->registrypriv.reg_enable_tx_power_limit == 2 &&
+ pHalData->EEPROMRegulatory == 1))
+ ODM_ConfigRFWithHeaderFile(&pHalData->odmpriv, CONFIG_RF_TXPWR_LMT, 0);

/* */
/* 1. Read PHY_REG.TXT BB INIT!! */
@@ -363,10 +360,9 @@ static int phy_BB8723b_Config_ParaFile(struct adapter *Adapter)
if (pHalData->odmpriv.PhyRegPgValueType == PHY_REG_PG_EXACT_VALUE)
PHY_TxPowerByRateConfiguration(Adapter);

- if (
- Adapter->registrypriv.RegEnableTxPowerLimit == 1 ||
- (Adapter->registrypriv.RegEnableTxPowerLimit == 2 && pHalData->EEPROMRegulatory == 1)
- )
+ if (Adapter->registrypriv.reg_enable_tx_power_limit == 1 ||
+ (Adapter->registrypriv.reg_enable_tx_power_limit == 2 &&
+ pHalData->EEPROMRegulatory == 1))
PHY_ConvertTxPowerLimitToPowerIndex(Adapter);
}

diff --git a/drivers/staging/rtl8723bs/include/drv_types.h b/drivers/staging/rtl8723bs/include/drv_types.h
index f86180dc350c..4e164bec6f4d 100644
--- a/drivers/staging/rtl8723bs/include/drv_types.h
+++ b/drivers/staging/rtl8723bs/include/drv_types.h
@@ -156,7 +156,7 @@ struct registry_priv {
u8 notch_filter;

/* define for tx power adjust */
- u8 RegEnableTxPowerLimit;
+ u8 reg_enable_tx_power_limit;
u8 RegEnableTxPowerByRate;
u8 RegPowerBase;
u8 RegPwrTblSel;
diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
index bc02db13781c..725f1da80d32 100644
--- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c
+++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
@@ -259,7 +259,7 @@ static void loadparam(struct adapter *padapter, struct net_device *pnetdev)

registry_par->notch_filter = (u8)rtw_notch_filter;

- registry_par->RegEnableTxPowerLimit = (u8)rtw_tx_pwr_lmt_enable;
+ registry_par->reg_enable_tx_power_limit = (u8)rtw_tx_pwr_lmt_enable;
registry_par->RegEnableTxPowerByRate = (u8)rtw_tx_pwr_by_rate;

registry_par->RegPowerBase = 14;
--
2.52.0