diff mbox series

[25/31] include: linux: leds: changing LED_* from enum led_brightness to actual value

Message ID 20220121165436.30956-26-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.
---
 include/linux/leds.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/linux/leds.h b/include/linux/leds.h
index ba4861ec73d3..814541e41ce0 100644
--- a/include/linux/leds.h
+++ b/include/linux/leds.h
@@ -597,7 +597,7 @@  void ledtrig_audio_set(enum led_audio type, enum led_brightness state);
 #else
 static inline enum led_brightness ledtrig_audio_get(enum led_audio type)
 {
-	return LED_OFF;
+	return 0;
 }
 static inline void ledtrig_audio_set(enum led_audio type,
 				     enum led_brightness state)