diff options
author | navin patidar <navin.patidar@gmail.com> | 2014-09-07 16:37:52 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-08 14:05:20 -0700 |
commit | 4ef1a32dfc931753891b3941b002013b12d2f88b (patch) | |
tree | a5f2c1a1be4f2bf30aa581e13f9c97b1258469ed /drivers/staging/rtl8188eu/hal | |
parent | 33ce0980079db2c09a0d6855a184708605e5499a (diff) |
staging: rtl8188eu: Rework function _PHY_PathADDAOn()
Rename CamelCase local variables and function name.
Remove unnecessary debugging messages and local variables.
Declare it as a static function.
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/hal')
-rw-r--r-- | drivers/staging/rtl8188eu/hal/HalPhyRf_8188e.c | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/drivers/staging/rtl8188eu/hal/HalPhyRf_8188e.c b/drivers/staging/rtl8188eu/hal/HalPhyRf_8188e.c index 63e4010647bb..24278f979ecf 100644 --- a/drivers/staging/rtl8188eu/hal/HalPhyRf_8188e.c +++ b/drivers/staging/rtl8188eu/hal/HalPhyRf_8188e.c @@ -666,30 +666,22 @@ static void reload_mac_registers(struct adapter *adapt, usb_write32(adapt, mac_reg[i], backup[i]); } -void -_PHY_PathADDAOn( - struct adapter *adapt, - u32 *ADDAReg, - bool isPathAOn, - bool is2t - ) +static void path_adda_on(struct adapter *adapt, u32 *adda_reg, + bool is_path_a_on, bool is2t) { - u32 pathOn; + u32 path_on; u32 i; - struct hal_data_8188e *pHalData = GET_HAL_DATA(adapt); - struct odm_dm_struct *dm_odm = &pHalData->odmpriv; - ODM_RT_TRACE(dm_odm, ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("ADDA ON.\n")); - pathOn = isPathAOn ? 0x04db25a4 : 0x0b1b25a4; + path_on = is_path_a_on ? 0x04db25a4 : 0x0b1b25a4; if (!is2t) { - pathOn = 0x0bdb25a0; - phy_set_bb_reg(adapt, ADDAReg[0], bMaskDWord, 0x0b1b25a0); + path_on = 0x0bdb25a0; + phy_set_bb_reg(adapt, adda_reg[0], bMaskDWord, 0x0b1b25a0); } else { - phy_set_bb_reg(adapt, ADDAReg[0], bMaskDWord, pathOn); + phy_set_bb_reg(adapt, adda_reg[0], bMaskDWord, path_on); } for (i = 1; i < IQK_ADDA_REG_NUM; i++) - phy_set_bb_reg(adapt, ADDAReg[i], bMaskDWord, pathOn); + phy_set_bb_reg(adapt, adda_reg[i], bMaskDWord, path_on); } void @@ -888,7 +880,7 @@ static void phy_IQCalibrate_8188E(struct adapter *adapt, s32 result[][8], u8 t, } ODM_RT_TRACE(dm_odm, ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("IQ Calibration for %s for %d times\n", (is2t ? "2T2R" : "1T1R"), t)); - _PHY_PathADDAOn(adapt, ADDA_REG, true, is2t); + path_adda_on(adapt, ADDA_REG, true, is2t); if (t == 0) dm_odm->RFCalibrateInfo.bRfPiEnable = (u8)phy_query_bb_reg(adapt, rFPGA0_XA_HSSIParameter1, BIT(8)); @@ -959,7 +951,7 @@ static void phy_IQCalibrate_8188E(struct adapter *adapt, s32 result[][8], u8 t, _PHY_PathAStandBy(adapt); /* Turn Path B ADDA on */ - _PHY_PathADDAOn(adapt, ADDA_REG, false, is2t); + path_adda_on(adapt, ADDA_REG, false, is2t); for (i = 0; i < retryCount; i++) { PathBOK = phy_path_b_iqk(adapt); |