staging: r8188eu: make ResetLedStatus static
authorMartin Kaiser <martin@kaiser.cx>
Sun, 26 Dec 2021 19:55:41 +0000 (20:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Dec 2021 16:12:34 +0000 (17:12 +0100)
The ResetLedStatus function is used only by the led layer.
Make it static.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211226195556.159471-7-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_led.c
drivers/staging/r8188eu/include/rtw_led.h

index 1eb70f33c15836f587a048486e5ea03c46cbd153..52e31d3307df4a0274d34ac621f4664e01b64779 100644 (file)
@@ -12,7 +12,7 @@ void BlinkWorkItemCallback(struct work_struct *work)
        BlinkHandler(pLed);
 }
 
-void ResetLedStatus(struct LED_871x *pLed)
+static void ResetLedStatus(struct LED_871x *pLed)
 {
        pLed->CurrLedState = RTW_LED_OFF; /*  Current LED state. */
        pLed->bLedOn = false; /*  true if LED is ON, false if LED is OFF. */
index ed8574c882884a12b65101b34cccc55201044e6a..984fba6363ade85969a2fef1a975d4bc4150659c 100644 (file)
@@ -102,8 +102,6 @@ struct led_priv{
 
 void BlinkWorkItemCallback(struct work_struct *work);
 
-void ResetLedStatus(struct LED_871x * pLed);
-
 void rtl8188eu_InitSwLeds(struct adapter *padapter);
 void rtl8188eu_DeInitSwLeds(struct adapter *padapter);