diff options
author | 2023-05-10 20:39:25 +0530 | |
---|---|---|
committer | 2023-05-13 20:13:43 +0900 | |
commit | 9c2501d68eaf9e9e550079e5d48d99bcd3687918 (patch) | |
tree | 6f5e99511a8320af78a44ddbc16f91f8862b1cef /drivers/staging/rtl8192e | |
parent | staging: rtl8192e: Rename tmpRegA and TempCCk (diff) | |
download | linux-9c2501d68eaf9e9e550079e5d48d99bcd3687918.tar.gz linux-9c2501d68eaf9e9e550079e5d48d99bcd3687918.tar.bz2 linux-9c2501d68eaf9e9e550079e5d48d99bcd3687918.zip |
staging: rtl8192e: Rename tmpOFDMindex and tmpCCKindex
Rename variable tmpOFDMindex to tmp_ofdm_index and
tmpCCKindex to tmp_cck_index to avoid CamelCase which
is not accepted by checkpatch.
Signed-off-by: Yogesh Hegde <yogi.kernel@gmail.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/48098479094e4562fe196cbce813476041a664df.1683730854.git.yogi.kernel@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192e')
-rw-r--r-- | drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index af136abc595c..117c0538cf5f 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -658,7 +658,7 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(struct net_device *dev) #define ThermalMeterVal 9 struct r8192_priv *priv = rtllib_priv(dev); u32 tmp_reg, tmp_cck; - u8 tmpOFDMindex, tmpCCKindex, tmpCCK20Mindex, tmpCCK40Mindex, tmpval; + u8 tmp_ofdm_index, tmp_cck_index, tmpCCK20Mindex, tmpCCK40Mindex, tmpval; int i = 0, CCKSwingNeedUpdate = 0; if (!priv->tx_pwr_tracking_init) { @@ -689,11 +689,11 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(struct net_device *dev) priv->thermal_meter[1] = ThermalMeterVal; if (priv->thermal_meter[0] >= (u8)tmp_reg) { - tmpOFDMindex = tmpCCK20Mindex = 6+(priv->thermal_meter[0] - + tmp_ofdm_index = tmpCCK20Mindex = 6+(priv->thermal_meter[0] - (u8)tmp_reg); tmpCCK40Mindex = tmpCCK20Mindex - 6; - if (tmpOFDMindex >= OFDM_TABLE_LEN) - tmpOFDMindex = OFDM_TABLE_LEN - 1; + if (tmp_ofdm_index >= OFDM_TABLE_LEN) + tmp_ofdm_index = OFDM_TABLE_LEN - 1; if (tmpCCK20Mindex >= CCK_TABLE_LEN) tmpCCK20Mindex = CCK_TABLE_LEN - 1; if (tmpCCK40Mindex >= CCK_TABLE_LEN) @@ -701,18 +701,18 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(struct net_device *dev) } else { tmpval = (u8)tmp_reg - priv->thermal_meter[0]; if (tmpval >= 6) { - tmpOFDMindex = 0; + tmp_ofdm_index = 0; tmpCCK20Mindex = 0; } else { - tmpOFDMindex = 6 - tmpval; + tmp_ofdm_index = 6 - tmpval; tmpCCK20Mindex = 6 - tmpval; } tmpCCK40Mindex = 0; } if (priv->current_chnl_bw != HT_CHANNEL_WIDTH_20) - tmpCCKindex = tmpCCK40Mindex; + tmp_cck_index = tmpCCK40Mindex; else - tmpCCKindex = tmpCCK20Mindex; + tmp_cck_index = tmpCCK20Mindex; priv->rec_cck_20m_idx = tmpCCK20Mindex; priv->rec_cck_40m_idx = tmpCCK40Mindex; @@ -727,15 +727,15 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(struct net_device *dev) CCKSwingNeedUpdate = 1; } - if (priv->cck_index != tmpCCKindex) { - priv->cck_index = tmpCCKindex; + if (priv->cck_index != tmp_cck_index) { + priv->cck_index = tmp_cck_index; CCKSwingNeedUpdate = 1; } if (CCKSwingNeedUpdate) rtl92e_dm_cck_txpower_adjust(dev, priv->bcck_in_ch14); - if (priv->ofdm_index[0] != tmpOFDMindex) { - priv->ofdm_index[0] = tmpOFDMindex; + if (priv->ofdm_index[0] != tmp_ofdm_index) { + priv->ofdm_index[0] = tmp_ofdm_index; rtl92e_set_bb_reg(dev, rOFDM0_XATxIQImbalance, bMaskDWord, OFDMSwingTable[priv->ofdm_index[0]]); } |