aboutsummaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_hid.c
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2009-05-21 17:55:18 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2009-05-21 17:55:18 +0000
commitfe45987e99869efae556e67759eaca768b05770f (patch)
tree0329615732f4136105ce4a7db7dd9983dfa87ff3 /sys/dev/usb/usb_hid.c
parenta688f49162d762c330684e01a6e503ff9b4d4ea8 (diff)
downloadsrc-fe45987e99869efae556e67759eaca768b05770f.tar.gz
src-fe45987e99869efae556e67759eaca768b05770f.zip
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
Notes
Notes: svn path=/head/; revision=192559
Diffstat (limited to 'sys/dev/usb/usb_hid.c')
-rw-r--r--sys/dev/usb/usb_hid.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/dev/usb/usb_hid.c b/sys/dev/usb/usb_hid.c
index cfec2096c669..52efa6777908 100644
--- a/sys/dev/usb/usb_hid.c
+++ b/sys/dev/usb/usb_hid.c
@@ -296,9 +296,6 @@ hid_get_item(struct hid_data *s, struct hid_item *h)
} else {
s->ncount = 1;
}
- /* set default usage */
- /* use the undefined HID PAGE */
- s->usage_last = 0;
goto top;
case 9: /* Output */