diff options
author | Jiri Kosina <jkosina@suse.cz> | 2008-04-23 10:39:43 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2008-04-23 10:39:43 -0400 |
commit | aaad2b0c757f3e6e02552cb0bdcd91a5ec0d6305 (patch) | |
tree | 61a81c4dfe02ef22118833a0cb500d24d39386cf /drivers/hid/usbhid | |
parent | 94bc891b00e40cbec375feb4568780af183fd7f4 (diff) |
HID: fix report descriptor handling for MS Wireless model 1028
Fix a typo in report descriptor fixup, which results in improper
substitution and leaving old value in place.
Reported-by: Juha Motorsportcom <juha_motorsportcom@luukku.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/usbhid')
-rw-r--r-- | drivers/hid/usbhid/hid-quirks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/usbhid/hid-quirks.c b/drivers/hid/usbhid/hid-quirks.c index 28ddc3fdd3d1..8d2bc93f8161 100644 --- a/drivers/hid/usbhid/hid-quirks.c +++ b/drivers/hid/usbhid/hid-quirks.c | |||
@@ -1113,7 +1113,7 @@ static void usbhid_fixup_microsoft_descriptor(unsigned char *rdesc, int rsize) | |||
1113 | && rdesc[557] == 0x19 | 1113 | && rdesc[557] == 0x19 |
1114 | && rdesc[559] == 0x29) { | 1114 | && rdesc[559] == 0x29) { |
1115 | printk(KERN_INFO "Fixing up Microsoft Wireless Receiver Model 1028 report descriptor\n"); | 1115 | printk(KERN_INFO "Fixing up Microsoft Wireless Receiver Model 1028 report descriptor\n"); |
1116 | rdesc[284] = rdesc[304] = rdesc[558] = 0x35; | 1116 | rdesc[284] = rdesc[304] = rdesc[557] = 0x35; |
1117 | rdesc[352] = 0x36; | 1117 | rdesc[352] = 0x36; |
1118 | rdesc[286] = rdesc[355] = 0x46; | 1118 | rdesc[286] = rdesc[355] = 0x46; |
1119 | rdesc[306] = rdesc[559] = 0x45; | 1119 | rdesc[306] = rdesc[559] = 0x45; |