OSDN Git Service

platform/x86: add support for Advantech software defined button
authorAndrea.Ho <Andrea.Ho@advantech.com.tw>
Fri, 19 Mar 2021 03:44:27 +0000 (03:44 +0000)
committerHans de Goede <hdegoede@redhat.com>
Wed, 7 Apr 2021 17:46:56 +0000 (19:46 +0200)
commit3d904005f6869f37fcc7188f2a15872deecbb38a
tree9b9c8c9bb6d63a8b5dd5c594e5a11ffb883ab5f7
parente72457fce9c339193b8da34967ca09e901cb3ed9
platform/x86: add support for Advantech software defined button

Advantech sw_button is a ACPI event trigger button.

With this driver, we can report KEY_PROG1 on the
Advantech Tabletop Network Appliances products and it has been
tested in FWA1112VC.

Add the software define button support to report EV_REP key_event
(KEY_PROG1) by pressing button that could be get on user
interface and trigger the customized actions.

Signed-off-by: Andrea.Ho <Andrea.Ho@advantech.com.tw>
Link: https://lore.kernel.org/r/20210319034427.23222-1-andrea.cs97g@nctu.edu.tw
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
MAINTAINERS
drivers/platform/x86/Kconfig
drivers/platform/x86/Makefile
drivers/platform/x86/adv_swbutton.c [new file with mode: 0644]