]> git.itanic.dy.fi Git - linux-stable/commitdiff
platform/x86: dell-wmi: Add WMI event 0x0012 0x0003 to the list
authorPali Rohár <pali@kernel.org>
Sat, 27 Aug 2022 13:30:40 +0000 (15:30 +0200)
committerHans de Goede <hdegoede@redhat.com>
Thu, 1 Sep 2022 14:54:35 +0000 (16:54 +0200)
It looks like that on Dell Latitude E6440 is WMI event 0x0012 0x0003 sent
when display changes brightness. When it happens kernel prints
"dell_wmi: Unknown WMI event type 0x12" message into dmesg.

So ignore it for now to not spam dmesg.

Signed-off-by: Pali Rohár <pali@kernel.org>
Link: https://lore.kernel.org/r/20220827133040.15932-1-pali@kernel.org
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/dell/dell-wmi-base.c

index e07d3ba85a3f4922a25dce51b7782e5aa79c062c..0a259a27459f6de978122967fb550524279f5375 100644 (file)
@@ -344,6 +344,9 @@ static const struct key_entry dell_wmi_keymap_type_0011[] = {
  * They are events with extended data
  */
 static const struct key_entry dell_wmi_keymap_type_0012[] = {
+       /* Backlight brightness change event */
+       { KE_IGNORE, 0x0003, { KEY_RESERVED } },
+
        /* Ultra-performance mode switch request */
        { KE_IGNORE, 0x000d, { KEY_RESERVED } },