]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
backlight: ktd2801: Enable BL_CORE_SUSPENDRESUME
authorDuje Mihanović <duje@dujemihanovic.xyz>
Sat, 28 Mar 2026 20:42:16 +0000 (21:42 +0100)
committerLee Jones <lee@kernel.org>
Thu, 30 Apr 2026 13:34:38 +0000 (14:34 +0100)
Boards using this backlight chip do not power the backlight off on
suspend. Enable BL_CORE_SUSPENDRESUME so the chip gets powered off by
the backlight core on suspend.

Tested on samsung,coreprimevelte.

Cc: stable@vger.kernel.org # v6.19
Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz>
Reviewed-by: Daniel Thompson (RISCstar) <danielt@kernel.org>
Link: https://patch.msgid.link/20260328-ktd2801-pm-fix-v1-1-007cb103faeb@dujemihanovic.xyz
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/ktd2801-backlight.c

index 17eac1b3bce4adfaff0e17ef0ba9817c5ba16658..1b1307e03b2045b4420a5a5a47d9f8542dda2eee 100644 (file)
@@ -53,6 +53,7 @@ static int ktd2801_update_status(struct backlight_device *bd)
 }
 
 static const struct backlight_ops ktd2801_backlight_ops = {
+       .options = BL_CORE_SUSPENDRESUME,
        .update_status = ktd2801_update_status,
 };