Skip to content

Commit

Permalink
leds: add LED_ON brightness as boolean value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Shyti authored and Jacek Anaszewski committed Jan 5, 2017
1 parent e64b8cc commit 4e552c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/leds.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ struct device;

enum led_brightness {
LED_OFF = 0,
LED_ON = 1,
LED_HALF = 127,
LED_FULL = 255,
};
Expand Down

0 comments on commit 4e552c8

Please sign in to comment.