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

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
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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. */
+1 −1
Original line number Diff line number Diff line
@@ -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;