Module Name: src
Committed By: yhardy
Date: Sat Aug 10 06:30:26 UTC 2019
Modified Files:
src/sys/dev/usb: ums.c
Log Message:
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@
To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.94 src/sys/dev/usb/ums.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/ums.c
diff -u src/sys/dev/usb/ums.c:1.93 src/sys/dev/usb/ums.c:1.94
--- src/sys/dev/usb/ums.c:1.93 Sun May 5 03:17:54 2019
+++ src/sys/dev/usb/ums.c Sat Aug 10 06:30:26 2019
@@ -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 @@ ums_attach(device_t parent, device_t sel
}
}
+ tpcalib_init(&sc->sc_ms.sc_tpcalib);
hidms_attach(self, &sc->sc_ms, &ums_accessops);
}