Skip to content
Snippets Groups Projects
Commit 97b397aa authored by Ondrej Jirman's avatar Ondrej Jirman Committed by Sasha Levin
Browse files

leds: sgm3140: Add missing timer cleanup and flash gpio control


[ Upstream commit 205c2988 ]

Enabling strobe and then setting brightness to 0 causes the driver to enter
invalid state after strobe end timer fires. We should cancel strobe mode
resources when changing brightness (aka torch mode).

Fixes: cef8ec8c ("leds: add sgm3140 driver")
Signed-off-by: default avatarOndrej Jirman <megi@xff.cz>
Link: https://lore.kernel.org/r/20240217191133.1757553-1-megi@xff.cz


Signed-off-by: default avatarLee Jones <lee@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b9040d57
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment