Use __UNCONST to pass default calibration data to tpcalib_ioctl().
This commit is contained in:
parent
1f2b389b7e
commit
94216ed61f
@ -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 @@ j6x0tp_attach(struct device *parent, struct device *self, void *aux)
|
||||
/* 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);
|
||||
|
@ -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 @@ psh3tp_attach(struct device *parent, struct device *self, void *aux)
|
||||
|
||||
/* 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);
|
||||
|
Loading…
Reference in New Issue
Block a user