From f29537124a95bc5cb080ada729af5a8b7775fde2 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Mon, 22 Jul 2013 16:52:57 -0500 Subject: [PATCH] rtl8188eu: Convert "typdef enum LED_PIN_871x" to "enum LED_PIN_871x" Signed-off-by: Larry Finger --- core/rtw_led.c | 4 +--- include/rtw_led.h | 8 ++++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/core/rtw_led.c b/core/rtw_led.c index aa07782..9529f60 100644 --- a/core/rtw_led.c +++ b/core/rtw_led.c @@ -71,15 +71,13 @@ void ResetLedStatus(PLED_871x pLed) { pLed->bLedScanBlinkInProgress = false; } - /* */ /* Description: */ /* Initialize an LED_871x object. */ -/* */ void InitLed871x( _adapter *padapter, PLED_871x pLed, - LED_PIN_871x LedPin + enum LED_PIN_871x LedPin ) { pLed->padapter = padapter; diff --git a/include/rtw_led.h b/include/rtw_led.h index 43a9bab..cc87cac 100644 --- a/include/rtw_led.h +++ b/include/rtw_led.h @@ -93,18 +93,18 @@ enum LED_STATE_871x { LED_BLINK_ALWAYS_ON = 16, }; -typedef enum _LED_PIN_871x{ +enum LED_PIN_871x { LED_PIN_NULL = 0, LED_PIN_LED0 = 1, LED_PIN_LED1 = 2, LED_PIN_LED2 = 3, LED_PIN_GPIO0 = 4, -}LED_PIN_871x; +}; typedef struct _LED_871x{ _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 BlinkingLedState; // Next state for blinking, either RTW_LED_ON or RTW_LED_OFF are. @@ -185,7 +185,7 @@ void InitLed871x( _adapter *padapter, PLED_871x pLed, - LED_PIN_871x LedPin + enum LED_PIN_871x LedPin ); void