aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/usbhid
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2008-06-24 14:42:25 -0400
committerJiri Kosina <jkosina@suse.cz>2008-10-14 17:50:52 -0400
commit3b239cd739a9499da08326356add3d9d992c7911 (patch)
tree859cbb6d09d381edcc8e0e9f12437e66bf00c7c5 /drivers/hid/usbhid
parent14a21cd459f97e3b3cc4fcde48fc5bcdb81d097e (diff)
HID: move cherry quirks
Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/usbhid')
-rw-r--r--drivers/hid/usbhid/hid-quirks.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/hid/usbhid/hid-quirks.c b/drivers/hid/usbhid/hid-quirks.c
index 1d12fb24829c..0cc6e4223cd1 100644
--- a/drivers/hid/usbhid/hid-quirks.c
+++ b/drivers/hid/usbhid/hid-quirks.c
@@ -79,9 +79,6 @@ static const struct hid_rdesc_blacklist {
79 __u16 idProduct; 79 __u16 idProduct;
80 __u32 quirks; 80 __u32 quirks;
81} hid_rdesc_blacklist[] = { 81} hid_rdesc_blacklist[] = {
82
83 { USB_VENDOR_ID_CHERRY, USB_DEVICE_ID_CHERRY_CYMOTION, HID_QUIRK_RDESC_CYMOTION },
84
85 { USB_VENDOR_ID_MONTEREY, USB_DEVICE_ID_GENIUS_KB29E, HID_QUIRK_RDESC_BUTTON_CONSUMER }, 82 { USB_VENDOR_ID_MONTEREY, USB_DEVICE_ID_GENIUS_KB29E, HID_QUIRK_RDESC_BUTTON_CONSUMER },
86 83
87 { USB_VENDOR_ID_PETALYNX, USB_DEVICE_ID_PETALYNX_MAXTER_REMOTE, HID_QUIRK_RDESC_PETALYNX }, 84 { USB_VENDOR_ID_PETALYNX, USB_DEVICE_ID_PETALYNX_MAXTER_REMOTE, HID_QUIRK_RDESC_PETALYNX },
@@ -320,19 +317,6 @@ u32 usbhid_lookup_quirk(const u16 idVendor, const u16 idProduct)
320EXPORT_SYMBOL_GPL(usbhid_lookup_quirk); 317EXPORT_SYMBOL_GPL(usbhid_lookup_quirk);
321 318
322/* 319/*
323 * Cherry Cymotion keyboard have an invalid HID report descriptor,
324 * that needs fixing before we can parse it.
325 */
326static void usbhid_fixup_cymotion_descriptor(char *rdesc, int rsize)
327{
328 if (rsize >= 17 && rdesc[11] == 0x3c && rdesc[12] == 0x02) {
329 printk(KERN_INFO "Fixing up Cherry Cymotion report descriptor\n");
330 rdesc[11] = rdesc[16] = 0xff;
331 rdesc[12] = rdesc[17] = 0x03;
332 }
333}
334
335/*
336 * Samsung IrDA remote controller (reports as Cypress USB Mouse). 320 * Samsung IrDA remote controller (reports as Cypress USB Mouse).
337 * 321 *
338 * Vendor specific report #4 has a size of 48 bit, 322 * Vendor specific report #4 has a size of 48 bit,
@@ -385,9 +369,6 @@ static void usbhid_fixup_button_consumer_descriptor(unsigned char *rdesc, int rs
385 369
386static void __usbhid_fixup_report_descriptor(__u32 quirks, char *rdesc, unsigned rsize) 370static void __usbhid_fixup_report_descriptor(__u32 quirks, char *rdesc, unsigned rsize)
387{ 371{
388 if ((quirks & HID_QUIRK_RDESC_CYMOTION))
389 usbhid_fixup_cymotion_descriptor(rdesc, rsize);
390
391 if (quirks & HID_QUIRK_RDESC_PETALYNX) 372 if (quirks & HID_QUIRK_RDESC_PETALYNX)
392 usbhid_fixup_petalynx_descriptor(rdesc, rsize); 373 usbhid_fixup_petalynx_descriptor(rdesc, rsize);
393 374