]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: r8188eu: rename rtl8188eu_init_default_value to rtw_hal_def_value_init
authorIvan Safonov <insafonov@gmail.com>
Sat, 3 Sep 2016 15:32:11 +0000 (22:32 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 09:23:23 +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/hal/hal_intf.c
drivers/staging/rtl8188eu/hal/usb_halinit.c
drivers/staging/rtl8188eu/include/hal_intf.h

index 214b978102149406ff7b22d1596f807c5881460b..805f3ad20d4a2509050dabd887e749ce136adb3f 100644 (file)
@@ -25,12 +25,6 @@ void rtw_hal_read_chip_version(struct adapter *adapt)
                adapt->HalFunc.read_chip_version(adapt);
 }
 
-void rtw_hal_def_value_init(struct adapter *adapt)
-{
-       if (adapt->HalFunc.init_default_value)
-               adapt->HalFunc.init_default_value(adapt);
-}
-
 void rtw_hal_free_data(struct adapter *adapt)
 {
        if (adapt->HalFunc.free_hal_data)
index ff4e95d32dde9ee13997895fdb53ebfcd8251825..bbc385e2af8614b2c1594b07554d612a4845cf12 100644 (file)
@@ -2029,7 +2029,7 @@ void rtw_hal_bcn_related_reg_setting(struct adapter *adapt)
        usb_write8(adapt, bcn_ctrl_reg, usb_read8(adapt, bcn_ctrl_reg) | BIT(1));
 }
 
-static void rtl8188eu_init_default_value(struct adapter *adapt)
+void rtw_hal_def_value_init(struct adapter *adapt)
 {
        struct hal_data_8188e *haldata;
        struct pwrctrl_priv *pwrctrlpriv;
@@ -2075,7 +2075,5 @@ void rtl8188eu_set_hal_ops(struct adapter *adapt)
        halfunc->InitSwLeds = &rtl8188eu_InitSwLeds;
        halfunc->DeInitSwLeds = &rtl8188eu_DeInitSwLeds;
 
-       halfunc->init_default_value = &rtl8188eu_init_default_value;
-
        rtl8188e_set_hal_ops(halfunc);
 }
index dd3fc79419741fae1b4232c61841232e0f2a97b1..58b4ee386123cc1ae3c05ecd88fdf8e7709b873f 100644 (file)
@@ -160,8 +160,6 @@ struct hal_ops {
        void    (*dm_init)(struct adapter *padapter);
        void    (*read_chip_version)(struct adapter *padapter);
 
-       void    (*init_default_value)(struct adapter *padapter);
-
        s32     (*interrupt_handler)(struct adapter *padapter);
 
        void    (*set_bwmode_handler)(struct adapter *padapter,