]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
leds: flash: leds-qcom-flash: Update torch current clamp setting
authorFenglin Wu <fenglin.wu@oss.qualcomm.com>
Tue, 29 Jul 2025 04:51:22 +0000 (12:51 +0800)
committerLee Jones <lee@kernel.org>
Mon, 18 Aug 2025 08:49:11 +0000 (09:49 +0100)
commit5974e8f6c3e47ab097c3dd8ece7324d1f88fe739
tree921b8aae94593866f121fd0680d5e5930516fba8
parent6e3779e3c6f9dcc9267bf98bef70773a0b13dcbb
leds: flash: leds-qcom-flash: Update torch current clamp setting

There is a register to clamp the flash current per LED channel when
safety timer is disabled. It needs to be updated according to the
maximum torch LED current setting to ensure the torch current won't
be clamped unexpectedly.

Fixes: 96a2e242a5dc ("leds: flash: Add driver to support flash LED module in QCOM PMICs")
Signed-off-by: Fenglin Wu <fenglin.wu@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250729-fix-torch-clamp-issue-v2-1-9b83816437a3@oss.qualcomm.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/flash/leds-qcom-flash.c