Skip to content

Commit

Permalink
staging: rtl8187se: Convert _LED_STRATEGY_8185 typedef into an enum
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ana Rey authored and Peter P Waskiewicz Jr committed Mar 13, 2014
1 parent 2ebdad6 commit 8a8ec80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions drivers/staging/rtl8187se/r8180.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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. */
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/rtl8187se/r8180_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8a8ec80

Please sign in to comment.