summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDevesh Jhunjhunwala <deveshj@codeaurora.org>2016-06-14 01:46:06 -0700
committerDevesh Jhunjhunwala <deveshj@codeaurora.org>2016-07-12 11:12:16 -0700
commit74ec31a097ae391e286a5c3989f8445eeb3e991d (patch)
treeff0884e79b34b8a3e79d38e4fa89e39e743e4171 /include/linux
parent400520a6e2f06cc7c45e386e769a85d4aded565b (diff)
leds: qpnp-flash-v2: Add support for multiple switch nodes
Since multiple devices may need to use the flash module, each will need its own switch node to be able to independently control the different leds. Add support for this functionality. CRs-Fixed: 1024187 Change-Id: Ibeebaff8456d8d338ac9bebb50e205e1196ce8a6 Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/leds-qpnp-flash-v2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/leds-qpnp-flash-v2.h b/include/linux/leds-qpnp-flash-v2.h
index 1ff8781d3837..428c0671b716 100644
--- a/include/linux/leds-qpnp-flash-v2.h
+++ b/include/linux/leds-qpnp-flash-v2.h
@@ -54,7 +54,8 @@ struct flash_switch_data {
struct platform_device *pdev;
struct led_classdev cdev;
struct flash_regulator_data *reg_data;
- u8 num_regulators;
+ int led_mask;
+ int num_regulators;
bool regulator_on;
};