From 74ec31a097ae391e286a5c3989f8445eeb3e991d Mon Sep 17 00:00:00 2001 From: Devesh Jhunjhunwala Date: Tue, 14 Jun 2016 01:46:06 -0700 Subject: 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 --- include/linux/leds-qpnp-flash-v2.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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; }; -- cgit v1.2.3