]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: rtl8188eu: Remove enum LED_STRATEGY_871x .
authornavin patidar <navin.patidar@gmail.com>
Sun, 20 Apr 2014 08:47:14 +0000 (14:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2014 22:59:51 +0000 (15:59 -0700)
 Now driver has only one type of led blinking strategy, so we don't
 need enum LED_STRATEGY_871x variable to store led blinking strategy
 type.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188eu_led.c
drivers/staging/rtl8188eu/include/rtw_led.h

index 01eeb7080717f2c1f266948d5490bc35412609e8..e3c86f7162cfc2cb4c0bd5a49bd7577442f2643b 100644 (file)
@@ -95,7 +95,6 @@ void rtl8188eu_InitSwLeds(struct adapter *padapter)
        struct hal_data_8188e   *haldata = GET_HAL_DATA(padapter);
 
        pledpriv->bRegUseLed = true;
-       pledpriv->LedStrategy = SW_LED_MODE1;
        pledpriv->LedControlHandler = LedControl8188eu;
        haldata->bLedOpenDrain = true;
 
index 0da4e27a70faedce1e7e4a453ea2ae8292a9e0c7..690c82aea1cdc44ef34f63eba2157dd5cde691dc 100644 (file)
@@ -143,30 +143,12 @@ struct LED_871x {
        (((struct LED_871x *)_LED_871x)->bLedWPSBlinkInProgress ||      \
        ((struct LED_871x *)_LED_871x)->bLedScanBlinkInProgress)
 
-/*  LED customization. */
-
-enum LED_STRATEGY_871x {
-       SW_LED_MODE0 = 0, /* SW control 1 LED via GPIO0. It is default option.*/
-       SW_LED_MODE1 = 1, /*  2 LEDs, through LED0 and LED1. For ALPHA. */
-       SW_LED_MODE2 = 2, /*  SW control 1 LED via GPIO0, customized for AzWave
-                          * 8187 minicard. */
-       SW_LED_MODE3 = 3, /*  SW control 1 LED via GPIO0, customized for Sercomm
-                          * Printer Server case. */
-       SW_LED_MODE4 = 4, /* for Edimax / Belkin */
-       SW_LED_MODE5 = 5, /* for Sercomm / Belkin */
-       SW_LED_MODE6 = 6, /* for 88CU minicard, porting from ce SW_LED_MODE7 */
-       HW_LED = 50, /*  HW control 2 LEDs, LED0 and LED1 (there are 4
-                     * different control modes, see MAC.CONFIG1 for details.)*/
-       LED_ST_NONE = 99,
-};
-
 void LedControl8188eu(struct adapter *padapter, enum LED_CTL_MODE      LedAction);
 
 struct led_priv{
        /* add for led control */
        struct LED_871x                 SwLed0;
        struct LED_871x                 SwLed1;
-       enum LED_STRATEGY_871x  LedStrategy;
        u8      bRegUseLed;
        void (*LedControlHandler)(struct adapter *padapter,
                                  enum LED_CTL_MODE LedAction);