aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/leds.h
diff options
context:
space:
mode:
authorAndi Shyti <andi.shyti@samsung.com>2017-01-05 11:34:12 +0900
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2017-01-05 23:01:05 +0100
commit4e552c8cb5bc9137e67e035bab8df6dddbca7384 (patch)
tree34331a79af07fc74c710768dbc6188d6001c47c8 /include/linux/leds.h
parentDT: leds: Improve examples by adding some context (diff)
downloadlinux-dev-4e552c8cb5bc9137e67e035bab8df6dddbca7384.tar.xz
linux-dev-4e552c8cb5bc9137e67e035bab8df6dddbca7384.zip
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.h1
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,
};