platform/x86: asus-nb-wmi: Support left round button on N56VB
authorPaul Cercueil <paul@crapouillou.net>
Mon, 13 Jan 2020 22:39:27 +0000 (19:39 -0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 20 Jan 2020 09:39:39 +0000 (11:39 +0200)
The N56VB laptop has a round button located on the left side above the
keyboard. Map it to F13 since it does not have any predeterminated
purpose.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/asus-nb-wmi.c

index b361c73..6f12747 100644 (file)
@@ -471,6 +471,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = {
        { KE_KEY, 0x67, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + CRT + TV */
        { KE_KEY, 0x6B, { KEY_TOUCHPAD_TOGGLE } },
        { KE_IGNORE, 0x6E, },  /* Low Battery notification */
+       { KE_KEY, 0x71, { KEY_F13 } }, /* General-purpose button */
        { KE_KEY, 0x7a, { KEY_ALS_TOGGLE } }, /* Ambient Light Sensor Toggle */
        { KE_KEY, 0x7c, { KEY_MICMUTE } },
        { KE_KEY, 0x7D, { KEY_BLUETOOTH } }, /* Bluetooth Enable */