diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-03-06 20:34:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-03-06 20:34:28 -0500 |
commit | 7c368bb1049bde17fc4f8655492478d7f2918da9 (patch) | |
tree | 4cf42cdfd0f7bccda990d94b4f00aa3beebc186f | |
parent | cba5a641ca7887dc371486681dac887869d1c7b7 (diff) | |
parent | 5ddc3229488f4cad719f47aecfa1459ebbbde5b3 (diff) |
Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jikos/hid
* 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jikos/hid:
HID blacklisting of all Code Mercenaries IOWarrior devices
-rw-r--r-- | drivers/usb/input/hid-core.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/drivers/usb/input/hid-core.c b/drivers/usb/input/hid-core.c index 12ec8b432953..827a75a186ba 100644 --- a/drivers/usb/input/hid-core.c +++ b/drivers/usb/input/hid-core.c | |||
@@ -686,10 +686,8 @@ void usbhid_init_reports(struct hid_device *hid) | |||
686 | #define USB_DEVICE_ID_SMARTJOY_DUAL_PLUS 0x8802 | 686 | #define USB_DEVICE_ID_SMARTJOY_DUAL_PLUS 0x8802 |
687 | 687 | ||
688 | #define USB_VENDOR_ID_CODEMERCS 0x07c0 | 688 | #define USB_VENDOR_ID_CODEMERCS 0x07c0 |
689 | #define USB_DEVICE_ID_CODEMERCS_IOW40 0x1500 | 689 | #define USB_DEVICE_ID_CODEMERCS_IOW_FIRST 0x1500 |
690 | #define USB_DEVICE_ID_CODEMERCS_IOW24 0x1501 | 690 | #define USB_DEVICE_ID_CODEMERCS_IOW_LAST 0x15ff |
691 | #define USB_DEVICE_ID_CODEMERCS_IOW48 0x1502 | ||
692 | #define USB_DEVICE_ID_CODEMERCS_IOW28 0x1503 | ||
693 | 691 | ||
694 | #define USB_VENDOR_ID_DELORME 0x1163 | 692 | #define USB_VENDOR_ID_DELORME 0x1163 |
695 | #define USB_DEVICE_ID_DELORME_EARTHMATE 0x0100 | 693 | #define USB_DEVICE_ID_DELORME_EARTHMATE 0x0100 |
@@ -789,10 +787,6 @@ static const struct hid_blacklist { | |||
789 | { USB_VENDOR_ID_AIRCABLE, USB_DEVICE_ID_AIRCABLE1, HID_QUIRK_IGNORE }, | 787 | { USB_VENDOR_ID_AIRCABLE, USB_DEVICE_ID_AIRCABLE1, HID_QUIRK_IGNORE }, |
790 | { USB_VENDOR_ID_ALCOR, USB_DEVICE_ID_ALCOR_USBRS232, HID_QUIRK_IGNORE }, | 788 | { USB_VENDOR_ID_ALCOR, USB_DEVICE_ID_ALCOR_USBRS232, HID_QUIRK_IGNORE }, |
791 | { USB_VENDOR_ID_BERKSHIRE, USB_DEVICE_ID_BERKSHIRE_PCWD, HID_QUIRK_IGNORE }, | 789 | { USB_VENDOR_ID_BERKSHIRE, USB_DEVICE_ID_BERKSHIRE_PCWD, HID_QUIRK_IGNORE }, |
792 | { USB_VENDOR_ID_CODEMERCS, USB_DEVICE_ID_CODEMERCS_IOW40, HID_QUIRK_IGNORE }, | ||
793 | { USB_VENDOR_ID_CODEMERCS, USB_DEVICE_ID_CODEMERCS_IOW24, HID_QUIRK_IGNORE }, | ||
794 | { USB_VENDOR_ID_CODEMERCS, USB_DEVICE_ID_CODEMERCS_IOW48, HID_QUIRK_IGNORE }, | ||
795 | { USB_VENDOR_ID_CODEMERCS, USB_DEVICE_ID_CODEMERCS_IOW28, HID_QUIRK_IGNORE }, | ||
796 | { USB_VENDOR_ID_CYPRESS, USB_DEVICE_ID_CYPRESS_HIDCOM, HID_QUIRK_IGNORE }, | 790 | { USB_VENDOR_ID_CYPRESS, USB_DEVICE_ID_CYPRESS_HIDCOM, HID_QUIRK_IGNORE }, |
797 | { USB_VENDOR_ID_CYPRESS, USB_DEVICE_ID_CYPRESS_ULTRAMOUSE, HID_QUIRK_IGNORE }, | 791 | { USB_VENDOR_ID_CYPRESS, USB_DEVICE_ID_CYPRESS_ULTRAMOUSE, HID_QUIRK_IGNORE }, |
798 | { USB_VENDOR_ID_DELORME, USB_DEVICE_ID_DELORME_EARTHMATE, HID_QUIRK_IGNORE }, | 792 | { USB_VENDOR_ID_DELORME, USB_DEVICE_ID_DELORME_EARTHMATE, HID_QUIRK_IGNORE }, |
@@ -1070,9 +1064,14 @@ static struct hid_device *usb_hid_configure(struct usb_interface *intf) | |||
1070 | int n, len, insize = 0; | 1064 | int n, len, insize = 0; |
1071 | struct usbhid_device *usbhid; | 1065 | struct usbhid_device *usbhid; |
1072 | 1066 | ||
1073 | /* Ignore all Wacom devices */ | 1067 | /* Ignore all Wacom devices */ |
1074 | if (le16_to_cpu(dev->descriptor.idVendor) == USB_VENDOR_ID_WACOM) | 1068 | if (le16_to_cpu(dev->descriptor.idVendor) == USB_VENDOR_ID_WACOM) |
1075 | return NULL; | 1069 | return NULL; |
1070 | /* ignore all Code Mercenaries IOWarrior devices */ | ||
1071 | if (le16_to_cpu(dev->descriptor.idVendor) == USB_VENDOR_ID_CODEMERCS) | ||
1072 | if (le16_to_cpu(dev->descriptor.idProduct) >= USB_DEVICE_ID_CODEMERCS_IOW_FIRST && | ||
1073 | le16_to_cpu(dev->descriptor.idProduct) <= USB_DEVICE_ID_CODEMERCS_IOW_LAST) | ||
1074 | return NULL; | ||
1076 | 1075 | ||
1077 | for (n = 0; hid_blacklist[n].idVendor; n++) | 1076 | for (n = 0; hid_blacklist[n].idVendor; n++) |
1078 | if ((hid_blacklist[n].idVendor == le16_to_cpu(dev->descriptor.idVendor)) && | 1077 | if ((hid_blacklist[n].idVendor == le16_to_cpu(dev->descriptor.idVendor)) && |