2021-07-02 12:48:33 +00:00
|
|
|
From 545ad5e39d959d0fad948d2f84889ea9cbdc6176 Mon Sep 17 00:00:00 2001
|
2021-06-03 18:04:25 +00:00
|
|
|
From: Zoltan Tamas Vajda <zoltan.tamas.vajda@gmail.com>
|
|
|
|
Date: Thu, 3 Jun 2021 10:50:55 +0200
|
|
|
|
Subject: [PATCH] Added quirk for Surface Go touchscreen
|
|
|
|
|
|
|
|
Patchset: surface-go-touchscreen
|
|
|
|
---
|
|
|
|
drivers/hid/hid-ids.h | 1 +
|
|
|
|
drivers/hid/hid-input.c | 2 ++
|
|
|
|
2 files changed, 3 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
|
2021-06-19 19:56:15 +00:00
|
|
|
index 136b58a91c04..28150a359970 100644
|
2021-06-03 18:04:25 +00:00
|
|
|
--- a/drivers/hid/hid-ids.h
|
|
|
|
+++ b/drivers/hid/hid-ids.h
|
2021-06-19 19:56:15 +00:00
|
|
|
@@ -390,6 +390,7 @@
|
2021-06-03 18:04:25 +00:00
|
|
|
#define USB_DEVICE_ID_HP_X2 0x074d
|
|
|
|
#define USB_DEVICE_ID_HP_X2_10_COVER 0x0755
|
|
|
|
#define USB_DEVICE_ID_ASUS_UX550_TOUCHSCREEN 0x2706
|
|
|
|
+#define I2C_DEVICE_ID_SURFACE_GO_TOUCHSCREEN 0x261A
|
|
|
|
|
|
|
|
#define USB_VENDOR_ID_ELECOM 0x056e
|
|
|
|
#define USB_DEVICE_ID_ELECOM_BM084 0x0061
|
|
|
|
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
|
2021-06-19 19:56:15 +00:00
|
|
|
index d1ab2dccf6fd..4548eace4d9f 100644
|
2021-06-03 18:04:25 +00:00
|
|
|
--- a/drivers/hid/hid-input.c
|
|
|
|
+++ b/drivers/hid/hid-input.c
|
|
|
|
@@ -324,6 +324,8 @@ static const struct hid_device_id hid_battery_quirks[] = {
|
|
|
|
HID_BATTERY_QUIRK_IGNORE },
|
|
|
|
{ HID_USB_DEVICE(USB_VENDOR_ID_ELAN, USB_DEVICE_ID_ASUS_UX550_TOUCHSCREEN),
|
|
|
|
HID_BATTERY_QUIRK_IGNORE },
|
|
|
|
+ { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_SURFACE_GO_TOUCHSCREEN),
|
|
|
|
+ HID_BATTERY_QUIRK_IGNORE },
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
|
|
|
--
|
2021-06-13 21:00:11 +00:00
|
|
|
2.32.0
|
2021-06-03 18:04:25 +00:00
|
|
|
|