Skip to content
Commit a113da75 authored by Hans de Goede's avatar Hans de Goede Committed by Greg Kroah-Hartman
Browse files

platform/x86: asus-wmi: Simplify tablet-mode-switch probing



[ Upstream commit c98dc61e ]

The 3 different tablet-mode-switch initialization paths repeat a lot
of the same code. Add a helper function for this.

This also makes the error-handling for the kbd_dock_devid case consistent
with the other 2 cases.

Cc: Luke D. Jones <luke@ljones.dev>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220824151145.1448010-1-hdegoede@redhat.com


Stable-dep-of: b52cbca2 ("platform/x86: asus-wmi: Move i8042 filter install to shared asus-wmi code")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 68b795d0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment