svn commit: r212132 - head/sys/dev/usb/input

Andrew Thompson thompsa at FreeBSD.org
Thu Sep 2 03:52:04 UTC 2010


Author: thompsa
Date: Thu Sep  2 03:52:04 2010
New Revision: 212132
URL: http://svn.freebsd.org/changeset/base/212132

Log:
  Fix UMS_BUTTON_MAX define name

Modified:
  head/sys/dev/usb/input/ums.c

Modified: head/sys/dev/usb/input/ums.c
==============================================================================
--- head/sys/dev/usb/input/ums.c	Thu Sep  2 03:50:11 2010	(r212131)
+++ head/sys/dev/usb/input/ums.c	Thu Sep  2 03:52:04 2010	(r212132)
@@ -480,7 +480,7 @@ ums_hid_parse(struct ums_softc *sc, devi
 
 	/* detect other buttons */
 
-	for (j = 0; (i < UMS_BUTTONS_MAX) && (j < 2); i++, j++) {
+	for (j = 0; (i < UMS_BUTTON_MAX) && (j < 2); i++, j++) {
 		if (!hid_locate(buf, len, HID_USAGE2(HUP_MICROSOFT, (j + 1)),
 		    hid_input, index, &info->sc_loc_btn[i], NULL, 
 		    &info->sc_iid_btn[i])) {


More information about the svn-src-all mailing list