diff mbox series

[17/31] net: intersil: changing LED_* from enum led_brightness to actual value

Message ID 20220121165436.30956-18-sampaio.ime@gmail.com
State New
Headers show
Series None | expand

Commit Message

Luiz Sampaio Jan. 21, 2022, 4:54 p.m. UTC
The enum led_brightness, which contains the declaration of LED_OFF,
LED_ON, LED_HALF and LED_FULL is obsolete, as the led class now supports
max_brightness.
---
 drivers/net/wireless/intersil/p54/led.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/net/wireless/intersil/p54/led.c b/drivers/net/wireless/intersil/p54/led.c
index 4bc77010f9c1..c5966b32416e 100644
--- a/drivers/net/wireless/intersil/p54/led.c
+++ b/drivers/net/wireless/intersil/p54/led.c
@@ -43,7 +43,7 @@  static void p54_update_leds(struct work_struct *work)
 			if (tmp < blink_delay)
 				blink_delay = tmp;
 
-			if (priv->leds[i].led_dev.brightness == LED_OFF)
+			if (priv->leds[i].led_dev.brightness == 0)
 				rerun = true;
 
 			priv->leds[i].toggled =