]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
platform/x86: dell-laptop: fix kbd_get_state's request value
authorLaszlo Toth <laszlth@gmail.com>
Tue, 13 Feb 2018 20:43:43 +0000 (21:43 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 15 Feb 2018 10:18:33 +0000 (12:18 +0200)
Commit 9862b43624a5 ("platform/x86: dell-laptop: Allocate buffer on heap
rather than globally")
broke one request, changed it back to the original value.

Tested on a Dell E6540, backlight came back.

Fixes: 9862b43624a5 ("platform/x86: dell-laptop: Allocate buffer on heap rather than globally")
Signed-off-by: Laszlo Toth <laszlth@gmail.com>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Reviewed-by: Mario Limonciello <mario.limonciello@dell.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/dell-laptop.c

index 2a68f59d2228c921e8609ccba97832e07cbaa582..a37cff9fd8d4fb615ef4b181acdfe928f6ade4cb 100644 (file)
@@ -1279,7 +1279,7 @@ static int kbd_get_state(struct kbd_state *state)
        struct calling_interface_buffer buffer;
        int ret;
 
-       dell_fill_request(&buffer, 0, 0, 0, 0);
+       dell_fill_request(&buffer, 0x1, 0, 0, 0);
        ret = dell_send_request(&buffer,
                                CLASS_KBD_BACKLIGHT, SELECT_KBD_BACKLIGHT);
        if (ret)