summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRam Chandrasekar <rkumbako@codeaurora.org>2015-04-02 10:44:57 -0600
committerKyle Yan <kyan@codeaurora.org>2016-05-31 15:27:45 -0700
commit0c0bbe061d4ab71b4d0cf1bea76941f88b504cfc (patch)
tree125340f891f0962e69aea4a8d090ad11624227f6 /include/linux
parenta5035ab8093bd613943c60440c558712093223f8 (diff)
leds: led-class: Retain the latest user brightness request
Retain the latest user brightness request. This ensures that when a max brightness limit is altered, the last brightness request is taken into account, when restoring the current brightness. Change-Id: I6461e06f64abe336cabc27a3992d734f1fb745c6 Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Diffstat (limited to 'include/linux')
-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 fa359c79c825..bba189a62dfd 100644
--- a/include/linux/leds.h
+++ b/include/linux/leds.h
@@ -35,6 +35,7 @@ struct led_classdev {
const char *name;
enum led_brightness brightness;
enum led_brightness max_brightness;
+ enum led_brightness usr_brightness_req;
int flags;
/* Lower 16 bits reflect status */