leds: flash: leds-qcom-flash: Turn off LED before setting flash current
authorFenglin Wu <quic_fenglinw@quicinc.com>
Tue, 25 Jul 2023 09:57:20 +0000 (17:57 +0800)
committerLee Jones <lee@kernel.org>
Fri, 28 Jul 2023 11:17:32 +0000 (12:17 +0100)
commit7c47381c8664d55861036d1d858daf5e9d5d67b8
tree918bd423ba79029260dcbfc85fdb489ca1701a58
parent05a576059ac23355a86e4be058cb43997d83c7fd
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>
drivers/leds/flash/leds-qcom-flash.c