Author: grehan
Date: Sat Mar 25 05:41:34 2017
New Revision: 315930
URL: https://svnweb.freebsd.org/changeset/base/315930

Log:
  MFC r315716
    Bring the handling of the y axis in the ums driver in-line with the other
    axes.
  
    No functional change.

Modified:
  stable/11/sys/dev/usb/input/ums.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/usb/input/ums.c
==============================================================================
--- stable/11/sys/dev/usb/input/ums.c   Sat Mar 25 05:21:49 2017        
(r315929)
+++ stable/11/sys/dev/usb/input/ums.c   Sat Mar 25 05:41:34 2017        
(r315930)
@@ -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)) {
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to