Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: w35und: inline hal_set_rf_power() to mto.c

Impact: cleanup

It's a trivial wrapper that is used in only one place, so lets inline it.

Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Pekka Enberg and committed by
Greg Kroah-Hartman
40abfccb 22a82bcd

+1 -7
+1 -1
drivers/staging/winbond/mto.c
··· 175 175 } 176 176 else //follow the setting from EEPROM 177 177 MTOPARA_TXPOWER_INDEX() = MTO_TXPOWER_FROM_EEPROM; 178 - hal_set_rf_power(MTO_HAL(), (u8)MTOPARA_TXPOWER_INDEX()); 178 + RFSynthesizer_SetPowerIndex(MTO_HAL(), (u8)MTOPARA_TXPOWER_INDEX()); 179 179 //------------------------------------------------ 180 180 181 181 // For RSSI turning 20060808.4 Cancel load from EEPROM
-5
drivers/staging/winbond/wbhal.c
··· 18 18 ret = Wb35Reg_WriteSync(pHwData, number, value); 19 19 return ret; 20 20 } 21 - 22 - void hal_set_rf_power(struct hw_data *pHwData, u8 PowerIndex) 23 - { 24 - RFSynthesizer_SetPowerIndex(pHwData, PowerIndex); 25 - }
-1
drivers/staging/winbond/wbhal_f.h
··· 39 39 void hal_set_rsn_wpa( struct hw_data * pHwData, u32 * RSN_IE_Bitmap , u32 * RSN_OUI_type , unsigned char bDesiredAuthMode); 40 40 void hal_set_connect_info( struct hw_data * pHwData, unsigned char boConnect ); 41 41 u8 hal_get_est_sq3( struct hw_data * pHwData, u8 Count ); 42 - void hal_set_rf_power( struct hw_data * pHwData, u8 PowerIndex ); // 20060621 Modify 43 42 void hal_descriptor_indicate( struct hw_data * pHwData, PDESCRIPTOR pDes ); 44 43 u8 hal_get_antenna_number( struct hw_data * pHwData ); 45 44 u32 hal_get_bss_pk_cnt( struct hw_data * pHwData );