staging: rtl8187se: Convert _LED_STRATEGY_8185 typedef into an enum
authorAna Rey <anarey@gmail.com>
Mon, 10 Mar 2014 17:56:46 +0000 (18:56 +0100)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Thu, 13 Mar 2014 22:41:43 +0000 (15:41 -0700)
The Documentation/CodingStyle doesn't recommend the use of typedef,
convert this into an enum.

Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
drivers/staging/rtl8187se/r8180.h
drivers/staging/rtl8187se/r8180_core.c

index f5b86ea0ea1c55865964bd5c065576f85ae4efbd..482b193e175999f418e29ec25ca332f8833790f0 100644 (file)
@@ -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. */
index d19175057097f1529d66b5ae66dd429a14d9db3c..c5a6b002c8c933f6e005c4c19fecf414f17a25dd 100644 (file)
@@ -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;