]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: asus-wmi: Add support for SW_TABLET_MODE
authorHans de Goede <hdegoede@redhat.com>
Sun, 10 May 2020 12:24:31 +0000 (14:24 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 12 May 2020 14:27:12 +0000 (17:27 +0300)
commit3156d80211284d880e047d71429bb2e9348b576e
treee0cf80d80d714b266744bd42e7535a502645a94b
parentd3a13635e554aa0ca456f6aba03f7bbd24d121d2
platform/x86: asus-wmi: Add support for SW_TABLET_MODE

On Asus 2-in-1s with a detachable keyboard the Asus WMI interface
reports if the tablet is attached to the keyboard or not.

Report if the 2-in-1 is in tablet or clamshell mode to userspace
by reporting SW_TABLET_MODE events to userspace.

This has been tested on a T100TA, T100CHI, T100HA and T200TA.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/asus-wmi.c
include/linux/platform_data/x86/asus-wmi.h