There is a current clamp register needs to be updated when enabling
torch LED, and the register address is different between different
PMIC flash LED modules. Add changes to address it.
Signed-off-by: Fenglin Wu <fenglin.wu@oss.qualcomm.com>
---
Changes in v2:
- Update the register mapping to use designated initializers and ensure
they are sorted by register address.
- Update the 'msb' of 'status1' register to 5 for pmi8998 flash LED
module
- Link to v1: https://lore.kernel.org/r/20250725-fix-torch-clamp-issue-v1-0-4cf3ebaa4c67@oss.qualcomm.com
---
Fenglin Wu (2):
leds: flash: leds-qcom-flash: update torch current clamp setting
leds: flash: leds-qcom-flash: add a separate register map for PMI8998
drivers/leds/flash/leds-qcom-flash.c | 87 +++++++++++++++++++++++++-----------
1 file changed, 60 insertions(+), 27 deletions(-)
---
base-commit: 4903924ac7ef31fbbe48b3261b1bc86ce6cd7e97
change-id: 20250725-fix-torch-clamp-issue-ca25212aa224
Best regards,
--
Fenglin Wu <fenglin.wu@oss.qualcomm.com>