OSDN Git Service

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)
commit696c6523ec8f2a8f30f3dffef7e382f0fe5c2010
tree4043ab923e36fd8950d2eecade6f02042f3cebe5
parent149c8c75b38be528b8648d907195f188bc8fb0fb
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