staging: r8188eu: rename hal_notch_filter_8188e to rtw_hal_notch_filter
authorIvan Safonov <insafonov@gmail.com>
Sat, 3 Sep 2016 15:32:50 +0000 (22:32 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 09:30:02 +0000 (11:30 +0200)
And remove many one-line wrappers.

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

index c8cfb5ba4be1305dd158f232e8ca4fc2511f395d..eb93008dbe74544d1cef65b34c953c7d38f2c0fd 100644 (file)
@@ -165,12 +165,6 @@ void rtw_hal_sreset_init(struct adapter *adapt)
                adapt->HalFunc.sreset_init_value(adapt);
 }
 
-void rtw_hal_notch_filter(struct adapter *adapter, bool enable)
-{
-       if (adapter->HalFunc.hal_notch_filter)
-               adapter->HalFunc.hal_notch_filter(adapter, enable);
-}
-
 void rtw_hal_reset_security_engine(struct adapter *adapter)
 {
        if (adapter->HalFunc.hal_reset_security_engine)
index 0b444fd3e5506200e8f76e890282aa6e5767adc3..7ef47c173963741f5b96186513afdc485fb01da7 100644 (file)
@@ -175,7 +175,7 @@ static void rtl8188e_SetHalODMVar(struct adapter *Adapter, enum hal_odm_variable
        }
 }
 
-static void hal_notch_filter_8188e(struct adapter *adapter, bool enable)
+void rtw_hal_notch_filter(struct adapter *adapter, bool enable)
 {
        if (enable) {
                DBG_88E("Enable notch filter\n");
@@ -208,8 +208,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc)
        pHalFunc->sreset_get_wifi_status  = &sreset_get_wifi_status;
 
        pHalFunc->SetHalODMVarHandler = &rtl8188e_SetHalODMVar;
-
-       pHalFunc->hal_notch_filter = &hal_notch_filter_8188e;
 }
 
 /*  */
index 4d779845bb30dc1f0be6f735f319a5720a70ef9e..429b0aca6404df178c8f4edd4ecb070cf89fe566 100644 (file)
@@ -172,7 +172,6 @@ struct hal_ops {
        void (*sreset_init_value)(struct adapter *padapter);
        u8 (*sreset_get_wifi_status)(struct adapter *padapter);
 
-       void (*hal_notch_filter)(struct adapter *adapter, bool enable);
        void (*hal_reset_security_engine)(struct adapter *adapter);
 };