Source-Changes-D archive

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

Re: CVS commit: src/sys/dev



Dear Ryo,

On 2019-07-09, Ryo ONODERA wrote:
> Module Name:	src
> Committed By:	ryoon
> Date:		Tue Jul  9 12:52:51 UTC 2019
> 
> Modified Files:
> 	src/sys/dev/hid: hidms.c hidms.h
> 	src/sys/dev/i2c: ims.c
> 
> Log Message:
> Add tpcalib, touch panel calibration to ims(4)
> 
> Suggested by ryo@ at Japan NetBSD Users' Group BOF 2019-07-06.
> 
> 
> To generate a diff of this commit:
> cvs rdiff -u -r1.2 -r1.3 src/sys/dev/hid/hidms.c
> cvs rdiff -u -r1.1 -r1.2 src/sys/dev/hid/hidms.h
> cvs rdiff -u -r1.1 -r1.2 src/sys/dev/i2c/ims.c
> 
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.

I think this change has the side effect that ums(4) devices which
report absolute coordinates seem to stop "moving" because
tcpalib_init is never called for these devices.

Is the patch below okay? Or, should hidms call tcpalib_init?
(I tested the patch with an ACECAD digimemo.)

-- 
Kind regards,

Yorick Hardy

Index: sys/dev/usb/ums.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/ums.c,v
retrieving revision 1.93
diff -u -r1.93 ums.c
--- sys/dev/usb/ums.c	5 May 2019 03:17:54 -0000	1.93
+++ sys/dev/usb/ums.c	24 Jul 2019 21:29:35 -0000
@@ -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