mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-22 12:33:40 +00:00
rtl8188eu: Convert "typdef enum LED_PIN_871x" to "enum LED_PIN_871x"
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
159c578e85
commit
f29537124a
2 changed files with 5 additions and 7 deletions
|
@ -71,15 +71,13 @@ void ResetLedStatus(PLED_871x pLed) {
|
||||||
pLed->bLedScanBlinkInProgress = false;
|
pLed->bLedScanBlinkInProgress = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* */
|
|
||||||
/* Description: */
|
/* Description: */
|
||||||
/* Initialize an LED_871x object. */
|
/* Initialize an LED_871x object. */
|
||||||
/* */
|
|
||||||
void
|
void
|
||||||
InitLed871x(
|
InitLed871x(
|
||||||
_adapter *padapter,
|
_adapter *padapter,
|
||||||
PLED_871x pLed,
|
PLED_871x pLed,
|
||||||
LED_PIN_871x LedPin
|
enum LED_PIN_871x LedPin
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pLed->padapter = padapter;
|
pLed->padapter = padapter;
|
||||||
|
|
|
@ -93,18 +93,18 @@ enum LED_STATE_871x {
|
||||||
LED_BLINK_ALWAYS_ON = 16,
|
LED_BLINK_ALWAYS_ON = 16,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum _LED_PIN_871x{
|
enum LED_PIN_871x {
|
||||||
LED_PIN_NULL = 0,
|
LED_PIN_NULL = 0,
|
||||||
LED_PIN_LED0 = 1,
|
LED_PIN_LED0 = 1,
|
||||||
LED_PIN_LED1 = 2,
|
LED_PIN_LED1 = 2,
|
||||||
LED_PIN_LED2 = 3,
|
LED_PIN_LED2 = 3,
|
||||||
LED_PIN_GPIO0 = 4,
|
LED_PIN_GPIO0 = 4,
|
||||||
}LED_PIN_871x;
|
};
|
||||||
|
|
||||||
typedef struct _LED_871x{
|
typedef struct _LED_871x{
|
||||||
_adapter *padapter;
|
_adapter *padapter;
|
||||||
|
|
||||||
LED_PIN_871x LedPin; // Identify how to implement this SW led.
|
enum LED_PIN_871x LedPin; // Identify how to implement this SW led.
|
||||||
enum LED_STATE_871x CurrLedState; // Current LED state.
|
enum LED_STATE_871x CurrLedState; // Current LED state.
|
||||||
enum LED_STATE_871x BlinkingLedState; // Next state for blinking, either RTW_LED_ON or RTW_LED_OFF are.
|
enum LED_STATE_871x BlinkingLedState; // Next state for blinking, either RTW_LED_ON or RTW_LED_OFF are.
|
||||||
|
|
||||||
|
@ -185,7 +185,7 @@ void
|
||||||
InitLed871x(
|
InitLed871x(
|
||||||
_adapter *padapter,
|
_adapter *padapter,
|
||||||
PLED_871x pLed,
|
PLED_871x pLed,
|
||||||
LED_PIN_871x LedPin
|
enum LED_PIN_871x LedPin
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue