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)
commitb0dbd97de1f1fd6b3c9a7bb8f7c795bba7e169d8
treee0cf80d80d714b266744bd42e7535a502645a94b
parentfed5003d805c5ea06e146ed8df2b319496765454
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