Subbaraman Narayanamurthy 9aef7d449f leds: qpnp-flash-v2: Update IRES for active LEDs
Currently, whenever the switch LED device is triggered, IRES is
updated based on the LEDs belonging to that switch LED device.
However, this can overwrite IRES configuration if flash and torch
LED devices have different IRES since they share the same id.

Fix this by checking the active LED status which will be updated
based on the brightness level set so that IRES will be updated
for the correct LED (flash/torch) device.

CRs-Fixed: 2173127
Change-Id: Ic3b5db2f56758ccd68fd80139aeb22f31723130e
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2018-02-01 14:41:56 -08:00
..
2017-09-07 14:33:13 -07:00
2016-01-04 09:57:32 +01:00
2017-03-29 21:02:27 +02:00
2016-01-04 09:57:34 +01:00
2016-01-04 09:57:36 +01:00
2016-01-04 09:57:32 +01:00
2016-01-04 09:57:33 +01:00
2016-01-04 09:57:34 +01:00
2016-01-04 09:57:37 +01:00
2016-08-16 22:37:26 +02:00
2017-01-04 09:37:56 +01:00
2016-01-04 09:57:35 +01:00