Commit 8a8ec806 authored by Ana Rey's avatar Ana Rey Committed by Peter P Waskiewicz Jr

staging: rtl8187se: Convert _LED_STRATEGY_8185 typedef into an enum

The Documentation/CodingStyle doesn't recommend the use of typedef,
convert this into an enum.
Signed-off-by: default avatarAna Rey <anarey@gmail.com>
Signed-off-by: default avatarPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
parent 2ebdad62
...@@ -231,12 +231,13 @@ struct link_detect_t { ...@@ -231,12 +231,13 @@ struct link_detect_t {
* LED customization. * LED customization.
* ========================================================================== * ==========================================================================
*/ */
typedef enum _LED_STRATEGY_8185 { enum led_strategy_8185 {
SW_LED_MODE0, SW_LED_MODE0,
SW_LED_MODE1, SW_LED_MODE1,
HW_LED, /* HW control 2 LEDs, LED0 and LED1 (there are 4 different HW_LED, /* HW control 2 LEDs, LED0 and LED1 (there are 4 different
* control modes). */ * control modes). */
} LED_STRATEGY_8185, *PLED_STRATEGY_8185; };
/* by amy for led. */ /* by amy for led. */
/* by amy for power save. */ /* by amy for power save. */
typedef enum _LED_CTL_MODE { typedef enum _LED_CTL_MODE {
...@@ -459,7 +460,7 @@ struct r8180_priv { ...@@ -459,7 +460,7 @@ struct r8180_priv {
u16 rts; u16 rts;
/* by amy for led. */ /* by amy for led. */
LED_STRATEGY_8185 LedStrategy; enum led_strategy_8185 led_strategy;
/* by amy for led. */ /* by amy for led. */
/* by amy for power save. */ /* by amy for power save. */
......
...@@ -2441,7 +2441,7 @@ static short rtl8180_init(struct net_device *dev) ...@@ -2441,7 +2441,7 @@ static short rtl8180_init(struct net_device *dev)
priv->bSwRfProcessing = false; priv->bSwRfProcessing = false;
priv->eRFPowerState = eRfOff; priv->eRFPowerState = eRfOff;
priv->RfOffReason = 0; priv->RfOffReason = 0;
priv->LedStrategy = SW_LED_MODE0; priv->led_strategy = SW_LED_MODE0;
priv->TxPollingTimes = 0; /* lzm add 080826 */ priv->TxPollingTimes = 0; /* lzm add 080826 */
priv->bLeisurePs = true; priv->bLeisurePs = true;
priv->dot11PowerSaveMode = eActive; priv->dot11PowerSaveMode = eActive;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment