mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 14:42:34 -04:00
staging: r8188eu: make blink interval defines internal
The defines for led blink intervals are used only by the led layer. Move them into rtw_led.c. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20211226195556.159471-12-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e3a12865a9
commit
e83c8ef441
@@ -5,6 +5,12 @@
|
||||
#include "../include/rtw_led.h"
|
||||
#include "../include/rtl8188e_spec.h"
|
||||
|
||||
#define LED_BLINK_NO_LINK_INTVL msecs_to_jiffies(1000)
|
||||
#define LED_BLINK_LINK_INTVL msecs_to_jiffies(500)
|
||||
#define LED_BLINK_SCAN_INTVL msecs_to_jiffies(180)
|
||||
#define LED_BLINK_FASTER_INTVL msecs_to_jiffies(50)
|
||||
#define LED_BLINK_WPS_SUCESS_INTVL msecs_to_jiffies(5000)
|
||||
|
||||
#define IS_LED_WPS_BLINKING(l) \
|
||||
((l)->CurrLedState == LED_BLINK_WPS || \
|
||||
(l)->CurrLedState == LED_BLINK_WPS_STOP || \
|
||||
|
||||
@@ -7,12 +7,6 @@
|
||||
#include "osdep_service.h"
|
||||
#include "drv_types.h"
|
||||
|
||||
#define LED_BLINK_NO_LINK_INTVL msecs_to_jiffies(1000)
|
||||
#define LED_BLINK_LINK_INTVL msecs_to_jiffies(500)
|
||||
#define LED_BLINK_SCAN_INTVL msecs_to_jiffies(180)
|
||||
#define LED_BLINK_FASTER_INTVL msecs_to_jiffies(50)
|
||||
#define LED_BLINK_WPS_SUCESS_INTVL msecs_to_jiffies(5000)
|
||||
|
||||
enum LED_CTL_MODE {
|
||||
LED_CTL_POWER_ON = 1,
|
||||
LED_CTL_LINK = 2,
|
||||
|
||||
Reference in New Issue
Block a user