svn commit: r192559 - head/sys/dev/usb

[ Available lists | Index of svn-src-head | Month of May 2009 | Week of 21 May 2009 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Andrew Thompson <thompsa@FreeBSD.org>
Date
21 May 2009 17:55:18
Subject
svn commit: r192559 - head/sys/dev/usb
Message-ID
200905211755.n4LHtIrj074430@svn.freebsd.org


[ Hide this part ]
Author: thompsa
Date: Thu May 21 17:55:18 2009
New Revision: 192559
URL: http://svn.freebsd.org/changeset/base/192559

Log:
Don't clear last usage when a new HID item is found, it improves parsing of
Apple keyboard HID descriptors.

Submitted by: Hans Petter Selasky

Modified:
head/sys/dev/usb/usb_hid.c

Modified: head/sys/dev/usb/usb_hid.c
==============================================================================
--- head/sys/dev/usb/usb_hid.c Thu May 21 17:48:41 2009 (r192558)
+++ head/sys/dev/usb/usb_hid.c Thu May 21 17:55:18 2009 (r192559)
@@ -296,9 +296,6 @@ hid_get_item(struct hid_data *s, struct
} else {
s->ncount = 1;
}
- /* set default usage */
- /* use the undefined HID PAGE */
- s->usage_last = 0;
goto top;

case 9: /* Output */


Elapsed time: 0.075 seconds