leds: add LED_ON brightness as boolean value
authorAndi Shyti <andi.shyti@samsung.com>
Thu, 5 Jan 2017 02:34:12 +0000 (11:34 +0900)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Thu, 5 Jan 2017 22:01:05 +0000 (23:01 +0100)
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>
include/linux/leds.h

index 569cb531094c20a9aa2db478aaa6f348d2afd7f4..bb50d0151e75c07999de4cb7cff3591f8495c1d6 100644 (file)
@@ -27,6 +27,7 @@ struct device;
 
 enum led_brightness {
        LED_OFF         = 0,
+       LED_ON          = 1,
        LED_HALF        = 127,
        LED_FULL        = 255,
 };