[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220121165436.30956-18-sampaio.ime@gmail.com>
Date: Fri, 21 Jan 2022 13:54:22 -0300
From: Luiz Sampaio <sampaio.ime@...il.com>
To: Christian Lamparter <chunkeey@...glemail.com>,
Kalle Valo <kvalo@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>
Cc: linux-kernel@...r.kernel.org, Luiz Sampaio <sampaio.ime@...il.com>,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org
Subject: [PATCH 17/31] net: intersil: changing LED_* from enum led_brightness to actual value
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
Powered by blists - more mailing lists