dell-wmi: Add a WMI event code for display on/off
authorAlex Hung <alex.hung@canonical.com>
Fri, 17 Jun 2016 03:44:27 +0000 (11:44 +0800)
committerDarren Hart <dvhart@linux.intel.com>
Tue, 21 Jun 2016 16:24:01 +0000 (09:24 -0700)
Some new Dell AIO systems have a button that generates a WMI event to
turn the LCD on/off.

Signed-off-by: Alex Hung <alex.hung@canonical.com>
Acked-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/dell-wmi.c

index b8ad055..d2bc092 100644 (file)
@@ -133,6 +133,9 @@ static const struct key_entry dell_wmi_keymap_type_0000[] __initconst = {
        /* Audio panel key */
        { KE_IGNORE, 0xe026, { KEY_RESERVED } },
 
+       /* LCD Display On/Off Control key */
+       { KE_KEY,    0xe027, { KEY_DISPLAYTOGGLE } },
+
        /* Untested, Multimedia key on Dell Vostro 3560 */
        /* { KE_IGNORE, 0xe028, { KEY_RESERVED } }, */