diff options
author | Andi Shyti <andi.shyti@samsung.com> | 2017-01-05 05:34:12 +0300 |
---|---|---|
committer | Jacek Anaszewski <jacek.anaszewski@gmail.com> | 2017-01-06 01:01:05 +0300 |
commit | 4e552c8cb5bc9137e67e035bab8df6dddbca7384 (patch) | |
tree | 34331a79af07fc74c710768dbc6188d6001c47c8 /include/linux/leds.h | |
parent | e64b8cc72bf9958efd4f38e55d2980c95e0ce679 (diff) | |
download | linux-4e552c8cb5bc9137e67e035bab8df6dddbca7384.tar.xz |
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>
Diffstat (limited to 'include/linux/leds.h')
-rw-r--r-- | include/linux/leds.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/leds.h b/include/linux/leds.h index 569cb531094c..bb50d0151e75 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h @@ -27,6 +27,7 @@ struct device; enum led_brightness { LED_OFF = 0, + LED_ON = 1, LED_HALF = 127, LED_FULL = 255, }; |