]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
platform/x86: dell-wmi: Ignore keyboard backlight change KBD_LED_ON_TOKEN
authorRhys Kidd <rhyskidd@gmail.com>
Wed, 24 Jul 2019 08:14:13 +0000 (18:14 +1000)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 30 Jul 2019 11:12:51 +0000 (14:12 +0300)
There's a wmi event generated by dell-wmi when pressing keyboard backlight
toggle key:
[1224203.948894] dell_wmi: Unknown key with type 0x0011 and code 0x01e2 pressed

This event is for notification purposes, let's ignore it.

Signed-off-by: Rhys Kidd <rhyskidd@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/dell-wmi.c

index acc653f9c16fd290009c2b7754bf22339361697a..d9cd59d60b66ebacfc9e0905713338a2cc72b5e9 100644 (file)
@@ -312,6 +312,7 @@ static const struct key_entry dell_wmi_keymap_type_0011[] = {
 
        /* Keyboard backlight level changed */
        { KE_IGNORE, 0x01e1, { KEY_RESERVED } },
+       { KE_IGNORE, 0x01e2, { KEY_RESERVED } },
        { KE_IGNORE, 0x02ea, { KEY_RESERVED } },
        { KE_IGNORE, 0x02eb, { KEY_RESERVED } },
        { KE_IGNORE, 0x02ec, { KEY_RESERVED } },