diff mbox series

Toshiba Tecra X40-E, Melfas LGDisplay Incell Touch

Message ID 83231c43-2004-ecbb-3617-4783d6f71b0e@manwe.pl
State New
Headers show
Series Toshiba Tecra X40-E, Melfas LGDisplay Incell Touch | expand

Commit Message

Michal Zajac Jan. 28, 2020, 8:26 p.m. UTC
Another USB device ID for Melfas/LG touch display, this one is 1fd2:6014
and can be found in Toshiba Tecra X40-E. Tested myself, scrolling and
pinching works fine.
More info: https://bugzilla.kernel.org/show_bug.cgi?id=206295
# lsusb -d 1fd2:
Bus 001 Device 003: ID 1fd2:6014 Melfas LGDisplay Incell Touch

Signed-off-by: Michal Zajac <michal@zajac.cc>
---
  drivers/hid/hid-ids.h        | 1 +
  drivers/hid/hid-multitouch.c | 5 ++++-
  2 files changed, 5 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index 3a400ce603c4..d695f4494028 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -730,6 +730,7 @@ 
  #define USB_VENDOR_ID_LG		0x1fd2
  #define USB_DEVICE_ID_LG_MULTITOUCH	0x0064
  #define USB_DEVICE_ID_LG_MELFAS_MT	0x6007
+#define USB_DEVICE_ID_LG_MELFAS_MT_2	0x6014
  #define I2C_DEVICE_ID_LG_8001		0x8001
  #define I2C_DEVICE_ID_LG_7010		0x7010

diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
index 362805ddf377..a8b215703ed1 100644
--- a/drivers/hid/hid-multitouch.c
+++ b/drivers/hid/hid-multitouch.c
@@ -1981,10 +1981,13 @@  static const struct hid_device_id mt_devices[] = {
  		MT_USB_DEVICE(USB_VENDOR_ID_ILITEK,
  			USB_DEVICE_ID_ILITEK_MULTITOUCH) },

-	/* LG Melfas panel */
+	/* LG Melfas panels */
  	{ .driver_data = MT_CLS_LG,
  		HID_USB_DEVICE(USB_VENDOR_ID_LG,
  			USB_DEVICE_ID_LG_MELFAS_MT) },
+	{ .driver_data = MT_CLS_LG,
+		HID_USB_DEVICE(USB_VENDOR_ID_LG,
+			USB_DEVICE_ID_LG_MELFAS_MT_2) },
  	{ .driver_data = MT_CLS_LG,
  		HID_DEVICE(BUS_I2C, HID_GROUP_GENERIC,
  			USB_VENDOR_ID_LG, I2C_DEVICE_ID_LG_7010) },