staging: rtl8723au: Remove unused HAL wrappers around PHY register read/write calls
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 16 May 2014 08:04:03 +0000 (10:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 May 2014 18:34:23 +0000 (11:34 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/hal_intf.c
drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
drivers/staging/rtl8723au/include/hal_intf.h

index 2b74fb7be6d90dbea5bc14dba13f451666a6df54..d9be03dfd28dc5dfbf357e22154069b6a7f7ce53 100644 (file)
@@ -227,19 +227,6 @@ void       rtw_hal_add_ra_tid23a(struct rtw_adapter *padapter, u32 bitmap, u8 arg, u8
                padapter->HalFunc.Add_RateATid(padapter, bitmap, arg, rssi_level);
 }
 
-u32    rtw_hal_read_rfreg23a(struct rtw_adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask)
-{
-       u32 data = 0;
-       if (padapter->HalFunc.read_rfreg)
-               data = padapter->HalFunc.read_rfreg(padapter, eRFPath, RegAddr, BitMask);
-       return data;
-}
-void   rtw_hal_write_rfreg23a(struct rtw_adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask, u32 Data)
-{
-       if (padapter->HalFunc.write_rfreg)
-               padapter->HalFunc.write_rfreg(padapter, eRFPath, RegAddr, BitMask, Data);
-}
-
 s32    rtw_hal_interrupt_handler23a(struct rtw_adapter *padapter)
 {
        if (padapter->HalFunc.interrupt_handler)
index 758ee178c7e93e59a658c5c78b54cf66afdb60ff..681eee57c5694ec70dc992ba1e91fe07113bd37e 100644 (file)
@@ -1733,9 +1733,6 @@ void rtl8723a_set_hal_ops(struct hal_ops *pHalFunc)
 
        pHalFunc->Add_RateATid = &rtl8723a_add_rateatid;
 
-       pHalFunc->read_rfreg = &PHY_QueryRFReg;
-       pHalFunc->write_rfreg = &PHY_SetRFReg;
-
        /*  Efuse related function */
        pHalFunc->EfusePowerSwitch = &Hal_EfusePowerSwitch;
        pHalFunc->ReadEFuse = &Hal_ReadEFuse;
index 2645b649a9e040e41908a093ee2ae1407e7eeefb..89cee4df1bc062b1a746061f5f6b0fad1dd03a14 100644 (file)
@@ -117,11 +117,6 @@ struct hal_ops {
        s32 (*hal_xmitframe_enqueue)(struct rtw_adapter *padapter,
                                     struct xmit_frame *pxmitframe);
 
-       u32 (*read_rfreg)(struct rtw_adapter *padapter, u32 eRFPath,
-                         u32 RegAddr, u32 BitMask);
-       void (*write_rfreg)(struct rtw_adapter *padapter, u32 eRFPath,
-                           u32 RegAddr, u32 BitMask, u32 Data);
-
        void (*EfusePowerSwitch)(struct rtw_adapter *padapter, u8 bWrite,
                                 u8 PwrState);
        void (*ReadEFuse)(struct rtw_adapter *padapter, u8 efuseType,
@@ -235,9 +230,6 @@ void        rtw_hal_clone_data(struct rtw_adapter *dst_padapter, struct rtw_adapter *sr
 
 void rtw_hal_bcn_related_reg_setting23a(struct rtw_adapter *padapter);
 
-u32    rtw_hal_read_rfreg23a(struct rtw_adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask);
-void   rtw_hal_write_rfreg23a(struct rtw_adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask, u32 Data);
-
 s32    rtw_hal_interrupt_handler23a(struct rtw_adapter *padapter);
 
 void   rtw_hal_set_bwmode23a(struct rtw_adapter *padapter,