Staging: w35und: inline hal_set_rf_power() to mto.c
authorPekka Enberg <penberg@cs.helsinki.fi>
Wed, 8 Apr 2009 08:51:21 +0000 (11:51 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Jun 2009 18:00:38 +0000 (11:00 -0700)
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>
drivers/staging/winbond/mto.c
drivers/staging/winbond/wbhal.c
drivers/staging/winbond/wbhal_f.h

index 94a060bcc628215b08652a7532e8707fba2db11d..7deb5c769763ace1f7104fdb81befbcb872fde33 100644 (file)
@@ -175,7 +175,7 @@ void MTO_Init(struct wbsoft_priv *adapter)
        }
        else    //follow the setting from EEPROM
                MTOPARA_TXPOWER_INDEX() = MTO_TXPOWER_FROM_EEPROM;
-       hal_set_rf_power(MTO_HAL(), (u8)MTOPARA_TXPOWER_INDEX());
+       RFSynthesizer_SetPowerIndex(MTO_HAL(), (u8)MTOPARA_TXPOWER_INDEX());
        //------------------------------------------------
 
        // For RSSI turning 20060808.4 Cancel load from EEPROM
index 01626a110889a09f429813005ba02d590f6a62ca..b9a6e38bd5001c4369c4d77a49c60347a720b94a 100644 (file)
@@ -18,8 +18,3 @@ unsigned char hal_set_dxx_reg(struct hw_data *pHwData, u16 number, u32 value)
        ret = Wb35Reg_WriteSync(pHwData, number, value);
        return ret;
 }
-
-void hal_set_rf_power(struct hw_data *pHwData, u8 PowerIndex)
-{
-       RFSynthesizer_SetPowerIndex(pHwData, PowerIndex);
-}
index c4934cbe0c6fbe35f001a88e11ef80aa1881cdd2..fd1d3c28cdfb718241f4cb6b1855c02d5d78cd60 100644 (file)
@@ -39,7 +39,6 @@ void hal_set_cwmax(  struct hw_data * pHwData,  u16 cwin_max );
 void hal_set_rsn_wpa(  struct hw_data * pHwData,  u32 * RSN_IE_Bitmap , u32 * RSN_OUI_type , unsigned char bDesiredAuthMode);
 void hal_set_connect_info(  struct hw_data * pHwData,  unsigned char boConnect );
 u8 hal_get_est_sq3(  struct hw_data * pHwData,  u8 Count );
-void hal_set_rf_power(  struct hw_data * pHwData,  u8 PowerIndex ); // 20060621 Modify
 void hal_descriptor_indicate(  struct hw_data * pHwData,  PDESCRIPTOR pDes );
 u8 hal_get_antenna_number(  struct hw_data * pHwData );
 u32 hal_get_bss_pk_cnt(  struct hw_data * pHwData );