platform/x86: lenovo-yogabook-wmi: Add driver for Lenovo Yoga Book
authorYauhen Kharuzhy <jekhor@gmail.com>
Sun, 28 Nov 2021 19:00:30 +0000 (20:00 +0100)
committerHans de Goede <hdegoede@redhat.com>
Tue, 7 Dec 2021 11:21:00 +0000 (12:21 +0100)
commitc0549b72d99df4616632b6b7dd0e82c6bf49b021
treef71b8a62bfbcff1541ffa3b5c4ca7b8450d91398
parent8c33915d77a565b8b5d44e6368e22b6ea300b7a8
platform/x86: lenovo-yogabook-wmi: Add driver for Lenovo Yoga Book

Add driver to handle WMI events, control the keyboard backlight and
bind/unbind the keyboard-touch / digitizer driver so that only one
is active at a time.

It may seem a bit weird to handle the toggling of the modes in the
kernel, but the hw actually expects only 1 device to be active
at a time.

Changes by Hans de Goede:
- Whole bunch of cleanups
- Make the kernel do the driver bind/unbind itself instead of
  sending events to userspace and requiring a special userspace
  daemon to deal with this

Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>
Co-developed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20211128190031.405620-4-hdegoede@redhat.com
drivers/platform/x86/Kconfig
drivers/platform/x86/Makefile
drivers/platform/x86/lenovo-yogabook-wmi.c [new file with mode: 0644]