From: navin patidar Date: Sun, 7 Sep 2014 11:07:50 +0000 (+0530) Subject: staging: rtl8188eu: Rework function reload_adda_reg() X-Git-Tag: v3.18-rc1~130^2~609 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5d99b8b3e8695c08990ecf5364277ba897d4c767;p=karo-tx-linux.git staging: rtl8188eu: Rework function reload_adda_reg() Rename CamelCase local variables. Remove unnecessary debugging messages and local variables. Signed-off-by: navin patidar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/hal/HalPhyRf_8188e.c b/drivers/staging/rtl8188eu/hal/HalPhyRf_8188e.c index 1eabfdea11b4..6f81bbddb49d 100644 --- a/drivers/staging/rtl8188eu/hal/HalPhyRf_8188e.c +++ b/drivers/staging/rtl8188eu/hal/HalPhyRf_8188e.c @@ -646,15 +646,13 @@ static void save_mac_registers(struct adapter *adapt, u32 *mac_reg, backup[i] = usb_read32(adapt, mac_reg[i]); } -static void reload_adda_reg(struct adapter *adapt, u32 *ADDAReg, u32 *ADDABackup, u32 RegiesterNum) +static void reload_adda_reg(struct adapter *adapt, u32 *adda_reg, + u32 *backup, u32 regiester_num) { 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, ("Reload ADDA power saving parameters !\n")); - for (i = 0; i < RegiesterNum; i++) - phy_set_bb_reg(adapt, ADDAReg[i], bMaskDWord, ADDABackup[i]); + for (i = 0; i < regiester_num; i++) + phy_set_bb_reg(adapt, adda_reg[i], bMaskDWord, backup[i]); } static void