diff options
author | Laszlo Toth <laszlth@gmail.com> | 2018-02-13 15:43:43 -0500 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-02-15 05:18:33 -0500 |
commit | eca39e7f0cdb9bde4003a29149fa695e876c6f73 (patch) | |
tree | 2e1667e7476361a7bd55d1c192fa247a9fa1b3de | |
parent | ed5b9ba7bef7f277cbdf315e385b44e0e3b1a9ab (diff) |
platform/x86: dell-laptop: fix kbd_get_state's request value
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>
-rw-r--r-- | drivers/platform/x86/dell-laptop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c index 2a68f59d2228..a37cff9fd8d4 100644 --- a/drivers/platform/x86/dell-laptop.c +++ b/drivers/platform/x86/dell-laptop.c | |||
@@ -1279,7 +1279,7 @@ static int kbd_get_state(struct kbd_state *state) | |||
1279 | struct calling_interface_buffer buffer; | 1279 | struct calling_interface_buffer buffer; |
1280 | int ret; | 1280 | int ret; |
1281 | 1281 | ||
1282 | dell_fill_request(&buffer, 0, 0, 0, 0); | 1282 | dell_fill_request(&buffer, 0x1, 0, 0, 0); |
1283 | ret = dell_send_request(&buffer, | 1283 | ret = dell_send_request(&buffer, |
1284 | CLASS_KBD_BACKLIGHT, SELECT_KBD_BACKLIGHT); | 1284 | CLASS_KBD_BACKLIGHT, SELECT_KBD_BACKLIGHT); |
1285 | if (ret) | 1285 | if (ret) |