]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: r8188eu: rename rtl8188eu_InitSwLeds to rtw_hal_sw_led_init
authorIvan Safonov <insafonov@gmail.com>
Sat, 3 Sep 2016 15:32:20 +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/rtl8188eu_led.c
drivers/staging/rtl8188eu/hal/usb_halinit.c
drivers/staging/rtl8188eu/include/hal_intf.h
drivers/staging/rtl8188eu/include/rtl8188e_led.h

index f03da1c375d69a3b9bd734b0cd83fb4d94d1cb85..afab8359d0e485318a82753813ae412105722f1d 100644 (file)
@@ -37,12 +37,6 @@ void rtw_hal_dm_init(struct adapter *adapt)
                adapt->HalFunc.dm_init(adapt);
 }
 
-void rtw_hal_sw_led_init(struct adapter *adapt)
-{
-       if (adapt->HalFunc.InitSwLeds)
-               adapt->HalFunc.InitSwLeds(adapt);
-}
-
 u32 rtw_hal_power_on(struct adapter *adapt)
 {
        if (adapt->HalFunc.hal_power_on)
index 694ce59731e96a9986dad230e2e729de51602217..becf5b5eb192efb5ec1772ae73f253a44cadda2d 100644 (file)
@@ -66,7 +66,7 @@ exit:
 
 /*     Description: */
 /*             Initialize all LED_871x objects. */
-void rtl8188eu_InitSwLeds(struct adapter *padapter)
+void rtw_hal_sw_led_init(struct adapter *padapter)
 {
        struct led_priv *pledpriv = &(padapter->ledpriv);
        struct hal_data_8188e   *haldata = GET_HAL_DATA(padapter);
index a4c6f06cc0bcf37e11ad094dd8821cafed9b90d1..662281dd9321122b8f8b23e85cf69f595ca95ea1 100644 (file)
@@ -2072,7 +2072,6 @@ void rtl8188eu_set_hal_ops(struct adapter *adapt)
 
        halfunc->init_recv_priv = &rtl8188eu_init_recv_priv;
        halfunc->free_recv_priv = &rtl8188eu_free_recv_priv;
-       halfunc->InitSwLeds = &rtl8188eu_InitSwLeds;
 
        rtl8188e_set_hal_ops(halfunc);
 }
index cc8fadd9ed4ec572cc10064c5b8c18805619f341..6cddfd48eb0aef611a9ee9e4250e04b29618e8eb 100644 (file)
@@ -154,8 +154,6 @@ struct hal_ops {
        s32     (*init_recv_priv)(struct adapter *padapter);
        void    (*free_recv_priv)(struct adapter *padapter);
 
-       void    (*InitSwLeds)(struct adapter *padapter);
-
        void    (*dm_init)(struct adapter *padapter);
        void    (*read_chip_version)(struct adapter *padapter);
 
index ca71a0f6f888b1ef2ad2ea8306f5ae0402a4ac91..d1ad6aa8c1e0060c7ac29adfb42e7cf1ac56e8fd 100644 (file)
@@ -22,7 +22,6 @@
 /*  */
 /*  Interface to manipulate LED objects. */
 /*  */
-void rtl8188eu_InitSwLeds(struct adapter *padapter);
 void SwLedOn(struct adapter *padapter, struct LED_871x *pLed);
 void SwLedOff(struct adapter *padapter, struct LED_871x *pLed);