platform/x86: x86-android-tablets: Add support for extra buttons on Cyberbook T116
authorHans de Goede <hdegoede@redhat.com>
Fri, 5 May 2023 20:59:01 +0000 (22:59 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 9 May 2023 09:54:43 +0000 (11:54 +0200)
commit24f7b9a0650561cea1a20e54f8a55522cbff10ab
tree08a52286c6a35461dbd30981f28fe561281f04a7
parent6dc6c0c13d2caa5263289a95d99fcc41cfdb6962
platform/x86: x86-android-tablets: Add support for extra buttons on Cyberbook T116

The Cyberbook T116 rugged tablet comes in both Windows and Android versions
and even on the Android version the DSDT is mostly sane. This tablet has
2 extra general purpose buttons in the row with the power + volume-buttons,
labeled P and F.

Use the x86-android-tablets infra to create a gpio-button device for these
2 extra buttons.

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