[PATCH v2 0/2] leds: flash: leds-qcom-flash: update torch current clamp setting

Fenglin Wu via B4 Relay posted 2 patches 2 months, 1 week ago
drivers/leds/flash/leds-qcom-flash.c | 87 +++++++++++++++++++++++++-----------
1 file changed, 60 insertions(+), 27 deletions(-)
[PATCH v2 0/2] leds: flash: leds-qcom-flash: update torch current clamp setting
Posted by Fenglin Wu via B4 Relay 2 months, 1 week ago
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>
Re: [PATCH v2 0/2] leds: flash: leds-qcom-flash: update torch current clamp setting
Posted by Lee Jones 2 months ago
On Tue, 29 Jul 2025 12:51:21 +0800, Fenglin Wu wrote:
> 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.
> 
> 

Applied, thanks!

[1/2] leds: flash: leds-qcom-flash: update torch current clamp setting
      commit: f1b908cc8c7110872064e4a55a88b34938b4054a
[2/2] leds: flash: leds-qcom-flash: add a separate register map for PMI8998
      commit: 82f1f0522cad9193a42593b9e9622433efcf5f26

--
Lee Jones [李琼斯]