[PATCH] USB-HID: IOWarrior added to blacklist
From: cr7
Date: Tue May 11 2004 - 10:54:12 EST
Hi all,
this is a simple patch of USB's hid-core.c to add Codemercs' IOWarrior 24 and
IOWarrior 40 to the blacklist as it's not a "real" HID device.
It should be used via Codemercs' driver or via libusb.
The datasheet for IOwarrior can be found here:
http://www.codemercs.com/Downloads/IOWarriorDatasheet.pdf
Regards,
Carsten
--- /drivers/usb/input/hid-core.c-orig 2004-04-04 05:37:23.000000000 +0200
+++ /drivers/usb/input/hid-core.c 2004-05-11 13:50:11.877974264 +0200
@@ -1412,6 +1412,11 @@
#define USB_VENDOR_ID_CHIC 0x05fe
#define USB_DEVICE_ID_CHIC_GAMEPAD 0x0014
+#define USB_VENDOR_ID_CODEMERCS 0x07c0
+#define USB_DEVICE_ID_CODEMERCS_IOW40 0x1500
+#define USB_DEVICE_ID_CODEMERCS_IOW24 0x1501
+
+
struct hid_blacklist {
__u16 idVendor;
__u16 idProduct;
@@ -1479,6 +1484,9 @@
{ USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_RUMBLEPAD, HID_QUIRK_BADPAD },
{ USB_VENDOR_ID_TOPMAX, USB_DEVICE_ID_TOPMAX_COBRAPAD, HID_QUIRK_BADPAD },
+ { USB_VENDOR_ID_CODEMERCS, USB_DEVICE_ID_CODEMERCS_IOW40, HID_QUIRK_IGNORE },
+ { USB_VENDOR_ID_CODEMERCS, USB_DEVICE_ID_CODEMERCS_IOW24, HID_QUIRK_IGNORE },
+
{ 0, 0 }
};