From cddef802700c514ee2940ab9a2e669a5009872da Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Thu, 3 May 2018 15:16:28 +0100 Subject: [PATCH] staging: r8822be: fix typo in variable name "offest" -> "offset" There are multiple occurrances of typos of "offest" that should be "offset". Fix these. Signed-off-by: Colin Ian King Signed-off-by: Greg Kroah-Hartman --- .../rtlwifi/phydm/rtl8822b/halphyrf_8822b.c | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/staging/rtlwifi/phydm/rtl8822b/halphyrf_8822b.c b/drivers/staging/rtlwifi/phydm/rtl8822b/halphyrf_8822b.c index ee0620200dc3..9e92a81dc6d1 100644 --- a/drivers/staging/rtlwifi/phydm/rtl8822b/halphyrf_8822b.c +++ b/drivers/staging/rtlwifi/phydm/rtl8822b/halphyrf_8822b.c @@ -18,7 +18,7 @@ static bool get_mix_mode_tx_agc_bb_swing_offset_8822b(void *dm_void, enum pwrtrack_method method, - u8 rf_path, u8 tx_power_index_offest) + u8 rf_path, u8 tx_power_index_offset) { struct phy_dm_struct *dm = (struct phy_dm_struct *)dm_void; struct dm_rf_calibration_struct *cali_info = &dm->rf_calibrate_info; @@ -31,24 +31,24 @@ get_mix_mode_tx_agc_bb_swing_offset_8822b(void *dm_void, ODM_RT_TRACE( dm, ODM_COMP_TX_PWR_TRACK, - "Path_%d cali_info->absolute_ofdm_swing_idx[rf_path]=%d, tx_power_index_offest=%d\n", + "Path_%d cali_info->absolute_ofdm_swing_idx[rf_path]=%d, tx_power_index_offset=%d\n", rf_path, cali_info->absolute_ofdm_swing_idx[rf_path], - tx_power_index_offest); + tx_power_index_offset); - if (tx_power_index_offest > 0XF) - tx_power_index_offest = 0XF; + if (tx_power_index_offset > 0XF) + tx_power_index_offset = 0XF; if (cali_info->absolute_ofdm_swing_idx[rf_path] >= 0 && cali_info->absolute_ofdm_swing_idx[rf_path] <= - tx_power_index_offest) { + tx_power_index_offset) { tx_agc_index = cali_info->absolute_ofdm_swing_idx[rf_path]; tx_bb_swing_index = cali_info->default_ofdm_index; } else if (cali_info->absolute_ofdm_swing_idx[rf_path] > - tx_power_index_offest) { - tx_agc_index = tx_power_index_offest; + tx_power_index_offset) { + tx_agc_index = tx_power_index_offset; cali_info->remnant_ofdm_swing_idx[rf_path] = cali_info->absolute_ofdm_swing_idx[rf_path] - - tx_power_index_offest; + tx_power_index_offset; tx_bb_swing_index = cali_info->default_ofdm_index + cali_info->remnant_ofdm_swing_idx[rf_path]; @@ -74,9 +74,9 @@ get_mix_mode_tx_agc_bb_swing_offset_8822b(void *dm_void, ODM_RT_TRACE( dm, ODM_COMP_TX_PWR_TRACK, - "MixMode Offset Path_%d cali_info->absolute_ofdm_swing_idx[rf_path]=%d cali_info->bb_swing_idx_ofdm[rf_path]=%d tx_power_index_offest=%d\n", + "MixMode Offset Path_%d cali_info->absolute_ofdm_swing_idx[rf_path]=%d cali_info->bb_swing_idx_ofdm[rf_path]=%d tx_power_index_offset=%d\n", rf_path, cali_info->absolute_ofdm_swing_idx[rf_path], - cali_info->bb_swing_idx_ofdm[rf_path], tx_power_index_offest); + cali_info->bb_swing_idx_ofdm[rf_path], tx_power_index_offset); return true; } @@ -86,7 +86,7 @@ void odm_tx_pwr_track_set_pwr8822b(void *dm_void, enum pwrtrack_method method, { struct phy_dm_struct *dm = (struct phy_dm_struct *)dm_void; struct dm_rf_calibration_struct *cali_info = &dm->rf_calibrate_info; - u8 tx_power_index_offest = 0; + u8 tx_power_index_offset = 0; u8 tx_power_index = 0; struct rtl_priv *rtlpriv = (struct rtl_priv *)dm->adapter; @@ -128,11 +128,11 @@ void odm_tx_pwr_track_set_pwr8822b(void *dm_void, enum pwrtrack_method method, if (tx_power_index >= 63) tx_power_index = 63; - tx_power_index_offest = 63 - tx_power_index; + tx_power_index_offset = 63 - tx_power_index; ODM_RT_TRACE(dm, ODM_COMP_TX_PWR_TRACK, - "tx_power_index=%d tx_power_index_offest=%d rf_path=%d\n", - tx_power_index, tx_power_index_offest, rf_path); + "tx_power_index=%d tx_power_index_offset=%d rf_path=%d\n", + tx_power_index, tx_power_index_offset, rf_path); if (method == BBSWING) { /*use for mp driver clean power tracking status*/ @@ -167,7 +167,7 @@ void odm_tx_pwr_track_set_pwr8822b(void *dm_void, enum pwrtrack_method method, switch (rf_path) { case ODM_RF_PATH_A: get_mix_mode_tx_agc_bb_swing_offset_8822b( - dm, method, rf_path, tx_power_index_offest); + dm, method, rf_path, tx_power_index_offset); odm_set_bb_reg( dm, 0xC94, (BIT(29) | BIT(28) | BIT(27) | BIT(26) | BIT(25)), @@ -190,7 +190,7 @@ void odm_tx_pwr_track_set_pwr8822b(void *dm_void, enum pwrtrack_method method, case ODM_RF_PATH_B: get_mix_mode_tx_agc_bb_swing_offset_8822b( - dm, method, rf_path, tx_power_index_offest); + dm, method, rf_path, tx_power_index_offset); odm_set_bb_reg( dm, 0xE94, (BIT(29) | BIT(28) | BIT(27) | BIT(26) | BIT(25)), -- 2.30.2