]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: thinkpad_acpi: add mapping for new hotkeys
authorChristian Kellner <christian@kellner.me>
Tue, 28 Feb 2017 16:10:57 +0000 (17:10 +0100)
committerDarren Hart <dvhart@infradead.org>
Wed, 15 Mar 2017 05:57:13 +0000 (22:57 -0700)
commit596dd5a79a739abf2a37ebd186c4493c40444d70
tree4043ab923e36fd8950d2eecade6f02042f3cebe5
parent32fc8ec96f58a611abdb27e5cf672f7e3b6ec428
platform/x86: thinkpad_acpi: add mapping for new hotkeys

The T470, X270 emits new hkey events in the 0x1311 - 0x1315 range.
According to the user manual they should launch a user selected
favorite application (star icon, 0x1311), snipping tool (0x1312,
currently ignored), enable/disable bluetooth (0x1314) and open they
keyboard settings (0x1315).

The third nibble (0xf00) is used to differentiate between the original
hotkeys, the adaptive keyboard codes and the new, additional ones.

Signed-off-by: Christian Kellner <ckellner@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c