Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 2009 17:55:18 +0000 (UTC)
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r192559 - head/sys/dev/usb
Message-ID:  <200905211755.n4LHtIrj074430@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905211755.n4LHtIrj074430>