Skip to content

Commit b6dc799

Browse files
Pascal Auriel - StantumJiri Kosina
authored andcommitted
HID: support STmicroelectronics and Sitronix with hid-stantuml driver
New VendorsIds/ProductIds using hid-stantum driver. Signed-off-by: Stantum <software@stantum.com> Acked-by: Stephane Chatty <chatty@enac.fr> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 8038298 commit b6dc799

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎drivers/hid/hid-core.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,8 @@ static const struct hid_device_id hid_blacklist[] = {
13771377
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS3_CONTROLLER) },
13781378
{ HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_VAIO_VGX_MOUSE) },
13791379
{ HID_USB_DEVICE(USB_VENDOR_ID_STANTUM, USB_DEVICE_ID_MTP) },
1380+
{ HID_USB_DEVICE(USB_VENDOR_ID_STANTUM_STM, USB_DEVICE_ID_MTP_STM) },
1381+
{ HID_USB_DEVICE(USB_VENDOR_ID_STANTUM_SITRONIX, USB_DEVICE_ID_MTP_SITRONIX) },
13801382
{ HID_USB_DEVICE(USB_VENDOR_ID_SUNPLUS, USB_DEVICE_ID_SUNPLUS_WDESKTOP) },
13811383
{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb300) },
13821384
{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb304) },

‎drivers/hid/hid-ids.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,12 @@
483483
#define USB_VENDOR_ID_STANTUM 0x1f87
484484
#define USB_DEVICE_ID_MTP 0x0002
485485

486+
#define USB_VENDOR_ID_STANTUM_STM 0x0483
487+
#define USB_DEVICE_ID_MTP_STM 0x3261
488+
489+
#define USB_VENDOR_ID_STANTUM_SITRONIX 0x1403
490+
#define USB_DEVICE_ID_MTP_SITRONIX 0x5001
491+
486492
#define USB_VENDOR_ID_SUN 0x0430
487493
#define USB_DEVICE_ID_RARITAN_KVM_DONGLE 0xcdab
488494

‎drivers/hid/hid-stantum.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ static void stantum_remove(struct hid_device *hdev)
249249

250250
static const struct hid_device_id stantum_devices[] = {
251251
{ HID_USB_DEVICE(USB_VENDOR_ID_STANTUM, USB_DEVICE_ID_MTP) },
252+
{ HID_USB_DEVICE(USB_VENDOR_ID_STANTUM_STM, USB_DEVICE_ID_MTP_STM) },
253+
{ HID_USB_DEVICE(USB_VENDOR_ID_STANTUM_SITRONIX, USB_DEVICE_ID_MTP_SITRONIX) },
252254
{ }
253255
};
254256
MODULE_DEVICE_TABLE(hid, stantum_devices);

0 commit comments

Comments
 (0)