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

Peter Grehan grehan at FreeBSD.org
Wed Mar 22 17:06:59 UTC 2017


Author: grehan
Date: Wed Mar 22 17:06:57 2017
New Revision: 315716
URL: https://svnweb.freebsd.org/changeset/base/315716

Log:
  Bring the handling of the y axis in the ums driver in-line with the other
  axes.
  
  No functional change.
  
  Submitted by:	Vicki Pfau (vi AT endrift.com)
  Approved by:	hps
  MFC after:	3 days
  Differential Revision:	https://reviews.freebsd.org/D9595

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

Modified: head/sys/dev/usb/input/ums.c
==============================================================================
--- head/sys/dev/usb/input/ums.c	Wed Mar 22 16:53:03 2017	(r315715)
+++ head/sys/dev/usb/input/ums.c	Wed Mar 22 17:06:57 2017	(r315716)
@@ -283,7 +283,7 @@ ums_intr_callback(struct usb_xfer *xfer,
 
 		if ((info->sc_flags & UMS_FLAG_Y_AXIS) &&
 		    (id == info->sc_iid_y))
-			dy = -hid_get_data(buf, len, &info->sc_loc_y);
+			dy -= hid_get_data(buf, len, &info->sc_loc_y);
 
 		if ((info->sc_flags & UMS_FLAG_Z_AXIS) &&
 		    (id == info->sc_iid_z)) {


More information about the svn-src-head mailing list