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 <anarey@gmail.com> Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
This commit is contained in:
parent
2ebdad626d
commit
8a8ec80643
|
@ -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. */
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue