Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andi Shyti and committed by
Jacek Anaszewski
4e552c8c e64b8cc7

+1
+1
include/linux/leds.h
··· 27 27 28 28 enum led_brightness { 29 29 LED_OFF = 0, 30 + LED_ON = 1, 30 31 LED_HALF = 127, 31 32 LED_FULL = 255, 32 33 };