[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220121165436.30956-10-sampaio.ime@gmail.com>
Date: Fri, 21 Jan 2022 13:54:14 -0300
From: Luiz Sampaio <sampaio.ime@...il.com>
To: Benjamin Herrenschmidt <benh@...nel.crashing.org>
Cc: linux-kernel@...r.kernel.org, Luiz Sampaio <sampaio.ime@...il.com>,
linuxppc-dev@...ts.ozlabs.org
Subject: [PATCH 09/31] macintosh: 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/macintosh/via-pmu-led.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/macintosh/via-pmu-led.c b/drivers/macintosh/via-pmu-led.c
index ae067ab2373d..b0a727ad0157 100644
--- a/drivers/macintosh/via-pmu-led.c
+++ b/drivers/macintosh/via-pmu-led.c
@@ -54,7 +54,7 @@ static void pmu_led_set(struct led_classdev *led_cdev,
spin_lock_irqsave(&pmu_blink_lock, flags);
switch (brightness) {
- case LED_OFF:
+ case 0:
requested_change = 0;
break;
case LED_FULL:
--
2.34.1
Powered by blists - more mailing lists