From: Ana Rey Date: Mon, 10 Mar 2014 17:56:46 +0000 (+0100) Subject: staging: rtl8187se: Convert _LED_STRATEGY_8185 typedef into an enum X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=8a8ec80643e5e9120da578870e788587d333c9f9;p=deliverable%2Flinux.git 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: Ana Rey Signed-off-by: Peter P Waskiewicz Jr --- diff --git a/drivers/staging/rtl8187se/r8180.h b/drivers/staging/rtl8187se/r8180.h index f5b86ea0ea1c..482b193e1759 100644 --- a/drivers/staging/rtl8187se/r8180.h +++ b/drivers/staging/rtl8187se/r8180.h @@ -231,12 +231,13 @@ struct link_detect_t { * LED customization. * ========================================================================== */ -typedef enum _LED_STRATEGY_8185 { +enum led_strategy_8185 { SW_LED_MODE0, SW_LED_MODE1, HW_LED, /* HW control 2 LEDs, LED0 and LED1 (there are 4 different * control modes). */ -} LED_STRATEGY_8185, *PLED_STRATEGY_8185; +}; + /* by amy for led. */ /* by amy for power save. */ typedef enum _LED_CTL_MODE { @@ -459,7 +460,7 @@ struct r8180_priv { u16 rts; /* by amy for led. */ - LED_STRATEGY_8185 LedStrategy; + enum led_strategy_8185 led_strategy; /* by amy for led. */ /* by amy for power save. */ diff --git a/drivers/staging/rtl8187se/r8180_core.c b/drivers/staging/rtl8187se/r8180_core.c index d19175057097..c5a6b002c8c9 100644 --- a/drivers/staging/rtl8187se/r8180_core.c +++ b/drivers/staging/rtl8187se/r8180_core.c @@ -2441,7 +2441,7 @@ static short rtl8180_init(struct net_device *dev) priv->bSwRfProcessing = false; priv->eRFPowerState = eRfOff; priv->RfOffReason = 0; - priv->LedStrategy = SW_LED_MODE0; + priv->led_strategy = SW_LED_MODE0; priv->TxPollingTimes = 0; /* lzm add 080826 */ priv->bLeisurePs = true; priv->dot11PowerSaveMode = eActive;