提交 aaad2b0c 编写于 作者: J Jiri Kosina

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: NJuha Motorsportcom <juha_motorsportcom@luukku.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 94bc891b
...@@ -1113,7 +1113,7 @@ static void usbhid_fixup_microsoft_descriptor(unsigned char *rdesc, int rsize) ...@@ -1113,7 +1113,7 @@ static void usbhid_fixup_microsoft_descriptor(unsigned char *rdesc, int rsize)
&& rdesc[557] == 0x19 && rdesc[557] == 0x19
&& rdesc[559] == 0x29) { && rdesc[559] == 0x29) {
printk(KERN_INFO "Fixing up Microsoft Wireless Receiver Model 1028 report descriptor\n"); printk(KERN_INFO "Fixing up Microsoft Wireless Receiver Model 1028 report descriptor\n");
rdesc[284] = rdesc[304] = rdesc[558] = 0x35; rdesc[284] = rdesc[304] = rdesc[557] = 0x35;
rdesc[352] = 0x36; rdesc[352] = 0x36;
rdesc[286] = rdesc[355] = 0x46; rdesc[286] = rdesc[355] = 0x46;
rdesc[306] = rdesc[559] = 0x45; rdesc[306] = rdesc[559] = 0x45;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册