[PATCH 09/31] macintosh: changing LED_* from enum led_brightness to actual value

Luiz Sampaio sampaio.ime at gmail.com
Sat Jan 22 03:54:14 AEDT 2022


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



More information about the Linuxppc-dev mailing list