summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDevesh Jhunjhunwala <deveshj@codeaurora.org>2016-08-09 01:11:15 -0700
committerDevesh Jhunjhunwala <deveshj@codeaurora.org>2016-08-16 07:54:03 -0700
commitecea1591539b1b5d40019203316bdb0f09d5a737 (patch)
treea97edaf9d21ae883e5adf4d709a3bd807caede38 /include/linux
parent717ccf3d01f70f239c2b7271940a27976f4fddb3 (diff)
leds: qpnp-flash-v2: Update flash_prepare API
Update the flash prepare API to handle the DISABLE_REGULATOR option, and include support to return the max_current value in a parameter instead of the return value. CRs-Fixed: 1043718 Change-Id: Ief86531658cd0e72ceeae062d29133d5505eb5cf Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/leds-qpnp-flash.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/leds-qpnp-flash.h b/include/linux/leds-qpnp-flash.h
index 55867e78bba6..3df370a9e6d3 100644
--- a/include/linux/leds-qpnp-flash.h
+++ b/include/linux/leds-qpnp-flash.h
@@ -16,8 +16,10 @@
#include <linux/leds.h>
#define ENABLE_REGULATOR BIT(0)
-#define QUERY_MAX_CURRENT BIT(1)
+#define DISABLE_REGULATOR BIT(1)
+#define QUERY_MAX_CURRENT BIT(2)
-int qpnp_flash_led_prepare(struct led_trigger *trig, int options);
+int qpnp_flash_led_prepare(struct led_trigger *trig, int options,
+ int *max_current);
#endif