staging: r8188eu: rename GetHwReg8188EU to rtw_hal_get_hwreg
authorIvan Safonov <insafonov@gmail.com>
Sat, 3 Sep 2016 15:31:53 +0000 (22:31 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 09:23:22 +0000 (11:23 +0200)
And remove two one-line wrappers.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mlme.c
drivers/staging/rtl8188eu/hal/hal_intf.c
drivers/staging/rtl8188eu/hal/usb_halinit.c
drivers/staging/rtl8188eu/include/hal_intf.h

index 012fba8af15ded3e72354d63db9b26d7f3e664a1..249568c5b060cb74a363d146fd43c056767b3d07 100644 (file)
@@ -2019,7 +2019,7 @@ void rtw_update_ht_cap(struct adapter *padapter, u8 *pie, uint ie_len)
                int i;
                u8      rf_type;
 
-               padapter->HalFunc.GetHwRegHandler(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
+               rtw_hal_get_hwreg(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
 
                /* update the MCS rates */
                for (i = 0; i < 16; i++) {
index 1cc8674e06e009854a177d7da4e2edb5cd38250a..041208c8e9eeccc484f8daaac6e7b90a5792d8c8 100644 (file)
@@ -120,12 +120,6 @@ void rtw_hal_set_hwreg(struct adapter *adapt, u8 variable, u8 *val)
                adapt->HalFunc.SetHwRegHandler(adapt, variable, val);
 }
 
-void rtw_hal_get_hwreg(struct adapter *adapt, u8 variable, u8 *val)
-{
-       if (adapt->HalFunc.GetHwRegHandler)
-               adapt->HalFunc.GetHwRegHandler(adapt, variable, val);
-}
-
 void rtw_hal_set_odm_var(struct adapter *adapt,
                         enum hal_odm_variable var, void *val1,
                         bool set)
index 6fa7158ceb5358ed36b09ededbeefae68e45c28f..be5d0681408c8800f5281786bdf93d123ef5ea81 100644 (file)
@@ -1778,7 +1778,7 @@ static void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
        }
 }
 
-static void GetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
+void rtw_hal_get_hwreg(struct adapter *Adapter, u8 variable, u8 *val)
 {
        struct hal_data_8188e   *haldata = GET_HAL_DATA(Adapter);
        struct odm_dm_struct *podmpriv = &haldata->odmpriv;
@@ -2080,7 +2080,6 @@ void rtl8188eu_set_hal_ops(struct adapter *adapt)
        halfunc->read_adapter_info = &_ReadAdapterInfo8188EU;
 
        halfunc->SetHwRegHandler = &SetHwReg8188EU;
-       halfunc->GetHwRegHandler = &GetHwReg8188EU;
 
        rtl8188e_set_hal_ops(halfunc);
 }
index 5f89bdca97dc56a63370065f296bbdde34a36e60..89f3fb83092e7b078950027f05e6d00c26109822 100644 (file)
@@ -177,8 +177,6 @@ struct hal_ops {
 
        void    (*SetHwRegHandler)(struct adapter *padapter, u8 variable,
                                   u8 *val);
-       void    (*GetHwRegHandler)(struct adapter *padapter, u8 variable,
-                                  u8 *val);
 
        void    (*SetHalODMVarHandler)(struct adapter *padapter,
                                       enum hal_odm_variable eVariable,