Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Initialize tcpalib for ums devices.



details:   https://anonhg.NetBSD.org/src/rev/502dbf488211
branches:  trunk
changeset: 1002669:502dbf488211
user:      yhardy <yhardy%NetBSD.org@localhost>
date:      Sat Aug 10 06:30:26 2019 +0000

description:
Initialize tcpalib for ums devices.

In r1.3 of src/sys/dev/hid/hidms.c, tpcalib is used for any hidms
device reporting absolute coordinates. So ums devices reporting
absolute coordinates also need to initialize tcpalib - do it for
all ums devices. An uninitialized tcpalib stops a mouse with
absolute coordinates from "moving".

OK: ryoon@

diffstat:

 sys/dev/usb/ums.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 5a7c7545dda8 -r 502dbf488211 sys/dev/usb/ums.c
--- a/sys/dev/usb/ums.c Sat Aug 10 03:38:36 2019 +0000
+++ b/sys/dev/usb/ums.c Sat Aug 10 06:30:26 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ums.c,v 1.93 2019/05/05 03:17:54 mrg Exp $     */
+/*     $NetBSD: ums.c,v 1.94 2019/08/10 06:30:26 yhardy Exp $  */
 
 /*
  * Copyright (c) 1998, 2017 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ums.c,v 1.93 2019/05/05 03:17:54 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ums.c,v 1.94 2019/08/10 06:30:26 yhardy Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -192,6 +192,7 @@
                }
        }
 
+       tpcalib_init(&sc->sc_ms.sc_tpcalib);
        hidms_attach(self, &sc->sc_ms, &ums_accessops);
 }
 



Home | Main Index | Thread Index | Old Index