#include "../include/rtw_led.h"
#include "../include/rtl8188e_spec.h"
-void BlinkWorkItemCallback(struct work_struct *work)
-{
- struct delayed_work *dwork = to_delayed_work(work);
- struct LED_871x *pLed = container_of(dwork, struct LED_871x, blink_work);
- BlinkHandler(pLed);
-}
-
static void ResetLedStatus(struct LED_871x *pLed)
{
pLed->CurrLedState = RTW_LED_OFF; /* Current LED state. */
}
}
-void BlinkHandler(struct LED_871x *pLed)
+static void blink_work(struct work_struct *work)
{
+ struct delayed_work *dwork = to_delayed_work(work);
+ struct LED_871x *pLed = container_of(dwork, struct LED_871x, blink_work);
struct adapter *padapter = pLed->padapter;
if ((padapter->bSurpriseRemoved) || (padapter->bDriverStopped))
pLed->padapter = padapter;
ResetLedStatus(pLed);
- INIT_DELAYED_WORK(&pLed->blink_work, BlinkWorkItemCallback);
+ INIT_DELAYED_WORK(&pLed->blink_work, blink_work);
}
void rtl8188eu_DeInitSwLeds(struct adapter *padapter)
(adapt)->ledpriv.LedControlHandler((adapt), (action)); \
} while (0)
-void BlinkWorkItemCallback(struct work_struct *work);
-
void rtl8188eu_InitSwLeds(struct adapter *padapter);
void rtl8188eu_DeInitSwLeds(struct adapter *padapter);
-void BlinkHandler(struct LED_871x * pLed);
-
#endif /* __RTW_LED_H_ */