]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
HID: appletb-kbd: add .resume method in PM
authorAditya Garg <gargaditya08@live.com>
Tue, 7 Apr 2026 11:08:22 +0000 (16:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Apr 2026 12:29:56 +0000 (14:29 +0200)
commit 1965445e13c09b79932ca8154977b4408cb9610c upstream.

Upon resuming from suspend, the Touch Bar driver was missing a resume
method in order to restore the original mode the Touch Bar was on before
suspending. It is the same as the reset_resume method.

Cc: stable@vger.kernel.org
Signed-off-by: Aditya Garg <gargaditya08@live.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-appletb-kbd.c

index b00687e67ce8e5a3d55b3a39107c98c9d3fa850d..0b10cff465e1792edf54c15192cf8cf2767fb984 100644 (file)
@@ -477,7 +477,7 @@ static int appletb_kbd_suspend(struct hid_device *hdev, pm_message_t msg)
        return 0;
 }
 
-static int appletb_kbd_reset_resume(struct hid_device *hdev)
+static int appletb_kbd_resume(struct hid_device *hdev)
 {
        struct appletb_kbd *kbd = hid_get_drvdata(hdev);
 
@@ -503,7 +503,8 @@ static struct hid_driver appletb_kbd_hid_driver = {
        .input_configured = appletb_kbd_input_configured,
 #ifdef CONFIG_PM
        .suspend = appletb_kbd_suspend,
-       .reset_resume = appletb_kbd_reset_resume,
+       .resume = appletb_kbd_resume,
+       .reset_resume = appletb_kbd_resume,
 #endif
        .driver.dev_groups = appletb_kbd_groups,
 };