]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86: asus-wmi: Adjust tablet/lidflip handling to use enum
authorLuke D. Jones <luke@ljones.dev>
Sat, 13 Aug 2022 09:27:52 +0000 (21:27 +1200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Dec 2023 17:36:32 +0000 (18:36 +0100)
commite8aed5133f6a65d49f34e2f9df34714d862827f5
tree6a48b5fcb6837fb285fc00cc1af7a9c37498ed6c
parentbfac5cc5a6da5bae83b42224e38495170515063f
platform/x86: asus-wmi: Adjust tablet/lidflip handling to use enum

[ Upstream commit 00aa846955fbfb04f7bc0c26c49febfe5395eca1 ]

Due to multiple types of tablet/lidflip, the existing code for
handling these events is refactored to use an enum for each type.

Signed-off-by: Luke D. Jones <luke@ljones.dev>
Link: https://lore.kernel.org/r/20220813092753.6635-1-luke@ljones.dev
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Stable-dep-of: b52cbca22cbf ("platform/x86: asus-wmi: Move i8042 filter install to shared asus-wmi code")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/asus-nb-wmi.c
drivers/platform/x86/asus-wmi.c
drivers/platform/x86/asus-wmi.h