Skip to content

Commit 4e552c8

Browse files
Andi Shytijacek-anaszewski
authored andcommitted
leds: add LED_ON brightness as boolean value
Some devices do not handle the led brightness or simply don't care about it. Conceptually said devices want to just switch on or off the led. It is useless in this case to have a 255 range of brightness, while just having an LED_ON and LED_OFF improves the boolean meaning of the led status. Signed-off-by: Andi Shyti <andi.shyti@samsung.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
1 parent e64b8cc commit 4e552c8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎include/linux/leds.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ struct device;
2727

2828
enum led_brightness {
2929
LED_OFF = 0,
30+
LED_ON = 1,
3031
LED_HALF = 127,
3132
LED_FULL = 255,
3233
};

0 commit comments

Comments
 (0)