]> www.infradead.org Git - users/dwmw2/linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 14:00:52 +0000 (16:00 +0200)
commitc94be1f039c334f63579f95b9f4338290fe555d4
tree1196856d0e8fdb194d6cf8ae87c799d0d51cf7ea
parentcdf9cfc1bbd7a53691f744b6e9726dc7a9e7e4e6
platform/x86: asus-wmi: Ignore WMI events with codes 0x7B, 0xC0

[ Upstream commit 362c1f2ec82cb65940e1c73e15a395a7a891fc6f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/asus-nb-wmi.c