adding support for surface pro 2017 buttons

This commit is contained in:
Jake Day 2017-11-08 21:48:15 -05:00
parent 67baa57b59
commit 21b03cb66b
2 changed files with 6 additions and 4 deletions

View file

@ -1069,10 +1069,10 @@ config INTEL_BXTWC_PMIC_TMU
of Whiskey Cove PMIC.
config SURFACE_PRO3_BUTTON
tristate "Power/home/volume buttons driver for Microsoft Surface Pro 3/4 tablet"
tristate "Power/home/volume buttons driver for Microsoft Surface Pro 3/4/2017 tablet"
depends on ACPI && INPUT
---help---
This driver handles the power/home/volume buttons on the Microsoft Surface Pro 3/4 tablet.
This driver handles the power/home/volume buttons on the Microsoft Surface Pro 3/4/2017 tablet.
config SURFACE_3_BUTTON
tristate "Power/home/volume buttons driver for Microsoft Surface 3 tablet"

View file

@ -1,6 +1,6 @@
/*
* power/home/volume button support for
* Microsoft Surface Pro 3/4 tablet.
* Microsoft Surface Pro 3/4/2017 tablet.
*
* Copyright (c) 2015 Intel Corporation.
* All rights reserved.
@ -21,8 +21,9 @@
#define SURFACE_PRO3_BUTTON_HID "MSHW0028"
#define SURFACE_PRO4_BUTTON_HID "MSHW0040"
#define SURFACE_PRO2017_BUTTON_HID "MSHW0040"
#define SURFACE_BUTTON_OBJ_NAME "VGBI"
#define SURFACE_BUTTON_DEVICE_NAME "Surface Pro 3/4 Buttons"
#define SURFACE_BUTTON_DEVICE_NAME "Surface Pro 3/4/2017 Buttons"
#define SURFACE_BUTTON_NOTIFY_TABLET_MODE 0xc8
@ -59,6 +60,7 @@ MODULE_LICENSE("GPL v2");
static const struct acpi_device_id surface_button_device_ids[] = {
{SURFACE_PRO3_BUTTON_HID, 0},
{SURFACE_PRO4_BUTTON_HID, 0},
{SURFACE_PRO2017_BUTTON_HID, 0},
{"", 0},
};
MODULE_DEVICE_TABLE(acpi, surface_button_device_ids);