platform/x86: asus-wmi: Ignore WMI events with codes 0x7B, 0xC0
authorAlexandru Sorodoc <ealex95@gmail.com>
Fri, 12 May 2023 10:15:17 +0000 (13:15 +0300)
committerHans de Goede <hdegoede@redhat.com>
Mon, 15 May 2023 12:55:57 +0000 (14:55 +0200)
commit362c1f2ec82cb65940e1c73e15a395a7a891fc6f
tree384abe1be40b6aae9b5a7d4e8a00f7c2fdff0660
parent3d43f9f639542fadfb28f40b509bf147a6624d48
platform/x86: asus-wmi: Ignore WMI events with codes 0x7B, 0xC0

On ASUS GU604V the key 0x7B is issued when the charger is connected or
disconnected, and key 0xC0 is issued when an external display is
connected or disconnected.

This commit maps them to KE_IGNORE to slience kernel messages about
unknown keys, such as:

    kernel: asus_wmi: Unknown key code 0x7b

Signed-off-by: Alexandru Sorodoc <ealex95@gmail.com>
Link: https://lore.kernel.org/r/20230512101517.47416-1-ealex95@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/asus-nb-wmi.c