From: Andi Shyti Date: Thu, 5 Jan 2017 02:34:12 +0000 (+0900) Subject: leds: add LED_ON brightness as boolean value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4e552c8cb5bc;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Pavel Machek Signed-off-by: Jacek Anaszewski --- 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, };