Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcsh/dev Use __UNCONST to pass default calibration...



details:   https://anonhg.NetBSD.org/src/rev/35491b99e382
branches:  trunk
changeset: 581367:35491b99e382
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue May 31 23:21:03 2005 +0000

description:
Use __UNCONST to pass default calibration data to tpcalib_ioctl().

diffstat:

 sys/arch/hpcsh/dev/j6x0tp.c |  6 +++---
 sys/arch/hpcsh/dev/psh3tp.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r 86aeb6f10502 -r 35491b99e382 sys/arch/hpcsh/dev/j6x0tp.c
--- a/sys/arch/hpcsh/dev/j6x0tp.c       Tue May 31 23:14:02 2005 +0000
+++ b/sys/arch/hpcsh/dev/j6x0tp.c       Tue May 31 23:21:03 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: j6x0tp.c,v 1.5 2004/05/28 17:52:07 tsarna Exp $ */
+/*     $NetBSD: j6x0tp.c,v 1.6 2005/05/31 23:21:03 uwe Exp $ */
 
 /*
  * Copyright (c) 2003 Valeriy E. Ushakov
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: j6x0tp.c,v 1.5 2004/05/28 17:52:07 tsarna Exp $");
+__KERNEL_RCSID(0, "$NetBSD: j6x0tp.c,v 1.6 2005/05/31 23:21:03 uwe Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -280,7 +280,7 @@
        /* init calibration, set default parameters */
        tpcalib_init(&sc->sc_tpcalib);
        tpcalib_ioctl(&sc->sc_tpcalib, WSMOUSEIO_SCALIBCOORDS,
-                     (caddr_t)&j6x0tp_default_calib, 0, 0);
+                     (caddr_t)__UNCONST(&j6x0tp_default_calib), 0, 0);
 
        /* used when in polling mode */
        callout_init(&sc->sc_touch_ch);
diff -r 86aeb6f10502 -r 35491b99e382 sys/arch/hpcsh/dev/psh3tp.c
--- a/sys/arch/hpcsh/dev/psh3tp.c       Tue May 31 23:14:02 2005 +0000
+++ b/sys/arch/hpcsh/dev/psh3tp.c       Tue May 31 23:21:03 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: psh3tp.c,v 1.1 2005/05/23 17:44:25 kiyohara Exp $      */
+/*     $NetBSD: psh3tp.c,v 1.2 2005/05/31 23:22:14 uwe Exp $   */
 /*
  * Copyright (c) 2005 KIYOHARA Takashi
  * All rights reserved.
@@ -183,8 +183,8 @@
 
        /* init calibration, set default parameters */
        tpcalib_init(&sc->sc_tpcalib);
-       tpcalib_ioctl(&sc->sc_tpcalib,
-           WSMOUSEIO_SCALIBCOORDS, (caddr_t)&psh3tp_default_calib, 0, 0);
+       tpcalib_ioctl(&sc->sc_tpcalib, WSMOUSEIO_SCALIBCOORDS,
+                     (caddr_t)__UNCONST(&psh3tp_default_calib), 0, 0);
 
        /* used when in polling mode */
        callout_init(&sc->sc_touch_ch);



Home | Main Index | Thread Index | Old Index