linux-stable/drivers/leds/flash
Ondrej Jirman c1a9296316 leds: sgm3140: Add missing timer cleanup and flash gpio control
[ Upstream commit 205c29887a ]

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: cef8ec8cbd ("leds: add sgm3140 driver")
Signed-off-by: Ondrej Jirman <megi@xff.cz>
Link: https://lore.kernel.org/r/20240217191133.1757553-1-megi@xff.cz
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:17:18 -04:00
..
Kconfig leds: flash: leds-qcom-flash: Declare the driver as a module 2023-07-28 12:17:23 +01:00
leds-aat1290.c leds: Convert all platform drivers to return void 2023-11-01 11:28:35 +00:00
leds-as3645a.c leds: as3645a: Replace strlcpy with strscpy 2023-05-25 12:44:25 +01:00
leds-ktd2692.c leds: Convert all platform drivers to return void 2023-11-01 11:28:35 +00:00
leds-lm3601x.c leds: lm3601x: Convert to use maple tree register cache 2023-11-01 11:29:00 +00:00
leds-max77693.c leds: Convert all platform drivers to return void 2023-11-01 11:28:35 +00:00
leds-mt6360.c leds: mt6360: Annotate struct mt6360_priv with __counted_by 2023-11-01 11:28:40 +00:00
leds-mt6370-flash.c leds: mt6370: Annotate struct mt6370_priv with __counted_by 2023-11-01 11:28:41 +00:00
leds-qcom-flash.c leds: Convert all platform drivers to return void 2023-11-01 11:28:35 +00:00
leds-rt4505.c leds: Switch i2c drivers back to use .probe() 2023-05-25 12:16:22 +01:00
leds-rt8515.c leds: Convert all platform drivers to return void 2023-11-01 11:28:35 +00:00
leds-sgm3140.c leds: sgm3140: Add missing timer cleanup and flash gpio control 2024-03-26 18:17:18 -04:00
Makefile leds: flash: mt6370: Add MediaTek MT6370 flashlight support 2023-03-23 14:54:08 +00:00