[PATCH 17/31] net: intersil: changing LED_* from enum led_brightness to actual value
From: Luiz Sampaio
Date: Fri Jan 21 2022 - 11:58:07 EST
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 --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 =
--
2.34.1