leds: rgb: leds-group-multicolor: Allow LEDs to stay on in suspend
authorAren Moynihan <aren@peacevolution.org>
Tue, 6 Feb 2024 18:13:17 +0000 (13:13 -0500)
committerLee Jones <lee@kernel.org>
Thu, 7 Mar 2024 08:48:08 +0000 (08:48 +0000)
commitec9aa8971f98ad4d0bea17a8eda60366c412e596
tree11afada8c4da55614f5a797682aabce627ef5a48
parent415798bc07dd1c1ae3a656aa026580816e0b9fe8
leds: rgb: leds-group-multicolor: Allow LEDs to stay on in suspend

If none of the managed LEDs enable LED_CORE_SUSPENDRESUME, then we
shouldn't need to set it here. This makes it possible to use multicolor
groups with GPIO LEDs that enable retain-state-suspended in the device
tree.

Signed-off-by: Aren Moynihan <aren@peacevolution.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Link: https://lore.kernel.org/r/20240206185400.596979-1-aren@peacevolution.org
[Lee: Changed the comment to respect proper grammar]
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/rgb/leds-group-multicolor.c