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

Andrew Thompson thompsa at FreeBSD.org
Thu May 21 17:55:19 UTC 2009


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 */


More information about the svn-src-all mailing list