From: Nickolai Kozachenko Date: Sat, 30 May 2020 17:07:20 +0000 (+0500) Subject: platform/x86: intel-hid: Add a quirk to support HP Spectre X2 (2015) X-Git-Tag: block-5.8-2020-06-11~26^2~4 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=8fe63eb757ac6e661a384cc760792080bdc738dc;p=linux-2.6-block.git platform/x86: intel-hid: Add a quirk to support HP Spectre X2 (2015) HEBC method reports capabilities of 5 button array but HP Spectre X2 (2015) does not have this control method (the same was for Wacom MobileStudio Pro). Expand previous DMI quirk by Alex Hung to also enable 5 button array for this system. Signed-off-by: Nickolai Kozachenko Signed-off-by: Andy Shevchenko --- diff --git a/drivers/platform/x86/intel-hid.c b/drivers/platform/x86/intel-hid.c index cc7dd4d87cce..9ee79b74311c 100644 --- a/drivers/platform/x86/intel-hid.c +++ b/drivers/platform/x86/intel-hid.c @@ -79,6 +79,13 @@ static const struct dmi_system_id button_array_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "Wacom MobileStudio Pro 16"), }, }, + { + .ident = "HP Spectre x2 (2015)", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "HP"), + DMI_MATCH(DMI_PRODUCT_NAME, "HP Spectre x2 Detachable"), + }, + }, { } };