platform/x86: x86-android-tablets: Add LID switch support for Yoga Tablet 2 1050...
authorHans de Goede <hdegoede@redhat.com>
Sat, 25 Feb 2023 16:11:04 +0000 (17:11 +0100)
committerHans de Goede <hdegoede@redhat.com>
Tue, 7 Mar 2023 11:08:31 +0000 (12:08 +0100)
commitdadbc368f4f26f59debe49e1cdf44883e8799fd2
tree26134e718fd7497891d8ca0bf4e0f5f0b82b01f7
parent607fbac0fccba506b4f9e47994504121db776956
platform/x86: x86-android-tablets: Add LID switch support for Yoga Tablet 2 1050/830 series

The Yoga Tablet 2 1050/830 series have a HALL sensor for detecting
when their (optional) case/cover is closed over the screen.

Their Windows counterparts (alsmost the same HW, different BIOS)
model this as a LID switch. Add support for reporting this as
a LID switch on the Android models too.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20230301092331.7038-14-hdegoede@redhat.com
drivers/platform/x86/x86-android-tablets/lenovo.c