Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2017 17:06:58 +0000 (UTC)
From:      Peter Grehan <grehan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r315716 - head/sys/dev/usb/input
Message-ID:  <201703221706.v2MH6wWR011759@repo.freebsd.org>

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



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