staging: rtl8188eu: Rework function _PHY_MACSettingCalibration()
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>
This commit is contained in:
parent
4ef1a32dfc
commit
86e9e28889
|
@ -684,25 +684,16 @@ static void path_adda_on(struct adapter *adapt, u32 *adda_reg,
|
|||
phy_set_bb_reg(adapt, adda_reg[i], bMaskDWord, path_on);
|
||||
}
|
||||
|
||||
void
|
||||
_PHY_MACSettingCalibration(
|
||||
struct adapter *adapt,
|
||||
u32 *MACReg,
|
||||
u32 *MACBackup
|
||||
)
|
||||
static void mac_setting_calibration(struct adapter *adapt, u32 *mac_reg, u32 *backup)
|
||||
{
|
||||
u32 i = 0;
|
||||
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, ("MAC settings for Calibration.\n"));
|
||||
|
||||
usb_write8(adapt, MACReg[i], 0x3F);
|
||||
usb_write8(adapt, mac_reg[i], 0x3F);
|
||||
|
||||
for (i = 1; i < (IQK_MAC_REG_NUM - 1); i++) {
|
||||
usb_write8(adapt, MACReg[i], (u8)(MACBackup[i]&(~BIT3)));
|
||||
usb_write8(adapt, mac_reg[i], (u8)(backup[i]&(~BIT3)));
|
||||
}
|
||||
usb_write8(adapt, MACReg[i], (u8)(MACBackup[i]&(~BIT5)));
|
||||
usb_write8(adapt, mac_reg[i], (u8)(backup[i]&(~BIT5)));
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -906,7 +897,7 @@ static void phy_IQCalibrate_8188E(struct adapter *adapt, s32 result[][8], u8 t,
|
|||
}
|
||||
|
||||
/* MAC settings */
|
||||
_PHY_MACSettingCalibration(adapt, IQK_MAC_REG, dm_odm->RFCalibrateInfo.IQK_MAC_backup);
|
||||
mac_setting_calibration(adapt, IQK_MAC_REG, dm_odm->RFCalibrateInfo.IQK_MAC_backup);
|
||||
|
||||
/* Page B init */
|
||||
/* AP or IQK */
|
||||
|
|
|
@ -46,9 +46,6 @@ void PHY_LCCalibrate_8188E(struct adapter *pAdapter);
|
|||
/* AP calibrate */
|
||||
void PHY_DigitalPredistortion_8188E(struct adapter *pAdapter);
|
||||
|
||||
void _PHY_MACSettingCalibration(struct adapter *pAdapter, u32 *MACReg,
|
||||
u32 *MACBackup);
|
||||
|
||||
void _PHY_PathAStandBy(struct adapter *pAdapter);
|
||||
|
||||
#endif /* #ifndef __HAL_PHY_RF_8188E_H__ */
|
||||
|
|
Loading…
Reference in New Issue