From 1a64b719d3ae0e4fb939d9a9e31abb60b4ce4eb1 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Mon, 5 Dec 2016 16:10:33 +0100 Subject: platform/x86: Introduce button support for the Surface 3 The Surface 3 is not following the ACPI spec for PNP0C40, but nearly. The device is connected to a I2C device that might have some magic but we don't know about. Just create the device after the enumeration and use the declared GPIOs to provide button support. This driver is just an adaptation of drivers/input/misc/soc_button_array.c The Surface Pro 3 is using an ACPI driver and matches against the bid of the device ("VGBI"). To prevent this incompatible driver to be used on the Surface Pro, we add a match on the Surface 3 bid "TEV2". link: https://bugzilla.kernel.org/show_bug.cgi?id=102761 Signed-off-by: Benjamin Tissoires Acked-by: Dmitry Torokhov Signed-off-by: Andy Shevchenko --- drivers/platform/x86/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/platform/x86/Makefile') diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile index 6cd3d909b759..e9290290f026 100644 --- a/drivers/platform/x86/Makefile +++ b/drivers/platform/x86/Makefile @@ -67,6 +67,7 @@ obj-$(CONFIG_PVPANIC) += pvpanic.o obj-$(CONFIG_ALIENWARE_WMI) += alienware-wmi.o obj-$(CONFIG_INTEL_PMC_IPC) += intel_pmc_ipc.o obj-$(CONFIG_SURFACE_PRO3_BUTTON) += surfacepro3_button.o +obj-$(CONFIG_SURFACE_3_BUTTON) += surface3_button.o obj-$(CONFIG_INTEL_PUNIT_IPC) += intel_punit_ipc.o obj-$(CONFIG_INTEL_TELEMETRY) += intel_telemetry_core.o \ intel_telemetry_pltdrv.o \ -- cgit v1.2.3