leds: flash: leds-qcom-flash: Turn off LED before setting flash current

Strobe off the LED before setting flash current to avoid it's being
enabled with an incorrect current if it has been working in torch
mode.

Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
Link: https://lore.kernel.org/r/20230725-leds-qcom-flash-driver-tiny-fixes-v2-2-0f5cbce5fed0@quicinc.com
Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
Fenglin Wu 2023-07-25 17:57:20 +08:00 • committed by Lee Jones
commit 7c47381c86