summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDevesh Jhunjhunwala <deveshj@codeaurora.org>2016-08-31 14:53:56 -0700
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>2016-10-12 18:40:32 -0700
commit169fd1f5f59b20d9d7a2a3265c8db546854a8501 (patch)
treee4df91360598f46353300e60879347bb513c3ca4 /include/linux
parent889d937b11bc38131ea99fcb5561309553413eef (diff)
leds: qpnp-flash-v2: Add support for preemptive charger mitigation
Add support to configure and trigger preemptive charger mitigation in flash driver. Change-Id: Iec92d2037fcc60446760182c9eda53918e6e094c Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/leds-qpnp-flash.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/leds-qpnp-flash.h b/include/linux/leds-qpnp-flash.h
index 3df370a9e6d3..4b5a339970fa 100644
--- a/include/linux/leds-qpnp-flash.h
+++ b/include/linux/leds-qpnp-flash.h
@@ -18,6 +18,9 @@
#define ENABLE_REGULATOR BIT(0)
#define DISABLE_REGULATOR BIT(1)
#define QUERY_MAX_CURRENT BIT(2)
+#define PRE_FLASH BIT(3)
+
+#define FLASH_LED_PREPARE_OPTIONS_MASK GENMASK(3, 0)
int qpnp_flash_led_prepare(struct led_trigger *trig, int options,
int *max_current);