Skip to content

Commit 043b403

Browse files
Benjamin TissoiresJiri Kosina
authored andcommitted
HID: hid-multitouch: migrate support for Stantum panels to the unified driver.
This patch merges hid-stantum to the generic multitouch driver. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@enac.fr> Reviewed-by: Stéphane Chatty <chatty@enac.fr> Reviewed-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 9498f95 commit 043b403

4 files changed

Lines changed: 16 additions & 293 deletions

File tree

‎drivers/hid/Kconfig‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ config HID_MULTITOUCH
327327
- 'Sensing Win7-TwoFinger' panel by GeneralTouch
328328
- eGalax dual-touch panels, including the
329329
Joojoo and Wetab tablets
330+
- Stantum multitouch panels
330331

331332
If unsure, say N.
332333

@@ -493,12 +494,6 @@ config HID_SONY
493494
---help---
494495
Support for Sony PS3 controller.
495496

496-
config HID_STANTUM
497-
tristate "Stantum multitouch panel"
498-
depends on USB_HID
499-
---help---
500-
Support for Stantum multitouch panel.
501-
502497
config HID_SUNPLUS
503498
tristate "Sunplus wireless desktop"
504499
depends on USB_HID

‎drivers/hid/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ obj-$(CONFIG_HID_ROCCAT_PYRA) += hid-roccat-pyra.o
6666
obj-$(CONFIG_HID_SAMSUNG) += hid-samsung.o
6767
obj-$(CONFIG_HID_SMARTJOYPLUS) += hid-sjoy.o
6868
obj-$(CONFIG_HID_SONY) += hid-sony.o
69-
obj-$(CONFIG_HID_STANTUM) += hid-stantum.o
7069
obj-$(CONFIG_HID_SUNPLUS) += hid-sunplus.o
7170
obj-$(CONFIG_HID_GREENASIA) += hid-gaff.o
7271
obj-$(CONFIG_HID_THRUSTMASTER) += hid-tmff.o

‎drivers/hid/hid-multitouch.c‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ struct mt_class {
7979
#define MT_CLS_DUAL_INRANGE_CONTACTNUMBER 3
8080
#define MT_CLS_CYPRESS 4
8181
#define MT_CLS_EGALAX 5
82+
#define MT_CLS_STANTUM 6
8283

8384
#define MT_DEFAULT_MAXCONTACT 10
8485

@@ -138,6 +139,9 @@ struct mt_class mt_classes[] = {
138139
.sn_move = 4096,
139140
.sn_pressure = 32,
140141
},
142+
{ .name = MT_CLS_STANTUM,
143+
.quirks = MT_QUIRK_VALID_IS_CONFIDENCE },
144+
141145
{ }
142146
};
143147

@@ -552,6 +556,17 @@ static const struct hid_device_id mt_devices[] = {
552556
HID_USB_DEVICE(USB_VENDOR_ID_DWAV,
553557
USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH4) },
554558

559+
/* Stantum panels */
560+
{ .driver_data = MT_CLS_STANTUM,
561+
HID_USB_DEVICE(USB_VENDOR_ID_STANTUM,
562+
USB_DEVICE_ID_MTP)},
563+
{ .driver_data = MT_CLS_STANTUM,
564+
HID_USB_DEVICE(USB_VENDOR_ID_STANTUM,
565+
USB_DEVICE_ID_MTP_STM)},
566+
{ .driver_data = MT_CLS_STANTUM,
567+
HID_USB_DEVICE(USB_VENDOR_ID_STANTUM,
568+
USB_DEVICE_ID_MTP_SITRONIX)},
569+
555570
{ }
556571
};
557572
MODULE_DEVICE_TABLE(hid, mt_devices);

‎drivers/hid/hid-stantum.c‎

Lines changed: 0 additions & 286 deletions
This file was deleted.

0 commit comments

Comments
 (0)