Commit graph

4 commits

Author SHA1 Message Date
Ankit Sharma
e5316ea0f1 leds: qpnp-flash-v2: Enable charger mitigation
When the charger mitigation is configured based on SW,
enable it locally when the total brightness (or current
level) of all torch/flash LED devices is greater than 1 A.

CRs-Fixed: 2011199
Change-Id: I8336b3201f0780855c3dc3633179c398b9f62162
Signed-off-by: Ankit Sharma <ansharma@codeaurora.org>
2017-04-18 12:26:56 +05:30
Devesh Jhunjhunwala
169fd1f5f5 leds: qpnp-flash-v2: Add support for preemptive charger mitigation
Add support to configure and trigger preemptive charger
mitigation in flash driver.

Change-Id: Iec92d2037fcc60446760182c9eda53918e6e094c
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-10-12 18:40:32 -07:00
Devesh Jhunjhunwala
ecea159153 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>
2016-08-16 07:54:03 -07:00
Devesh Jhunjhunwala
dc12c73b37 leds: qpnp-flash-v2: Update the flash_prepare API
Update the flash prepare API to accept a led_trigger device as an
argument. Also split the leds-qpnp-flash-v2 header file to keep the
flash_prepare API in a common header file for both legacy and v2
flash drivers.

CRs-Fixed: 1043718
Change-Id: Idb4ab086740b680e101d76d882bcfb618ac4b936
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-07-29 11:21:23 -07:00