From 169fd1f5f59b20d9d7a2a3265c8db546854a8501 Mon Sep 17 00:00:00 2001 From: Devesh Jhunjhunwala Date: Wed, 31 Aug 2016 14:53:56 -0700 Subject: 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 --- include/linux/leds-qpnp-flash.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux') 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); -- cgit v1.2.3