From ecea1591539b1b5d40019203316bdb0f09d5a737 Mon Sep 17 00:00:00 2001 From: Devesh Jhunjhunwala Date: Tue, 9 Aug 2016 01:11:15 -0700 Subject: 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 --- include/linux/leds-qpnp-flash.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/linux') 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 #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 -- cgit v1.2.3