use device_lookup_private to get softc
XXX this driver assumes unit of zero
This commit is contained in:
parent
17dbee905c
commit
332bec333d
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: vsxxx.c,v 1.9 2008/05/26 10:31:22 nisimura Exp $ */
|
/* $NetBSD: vsxxx.c,v 1.10 2008/06/12 21:51:12 cegger Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: vsxxx.c,v 1.9 2008/05/26 10:31:22 nisimura Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: vsxxx.c,v 1.10 2008/06/12 21:51:12 cegger Exp $");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Common machinary for VSXXX mice and tablet
|
* Common machinary for VSXXX mice and tablet
|
||||||
|
@ -118,10 +118,9 @@ vsxxx_ioctl(v, cmd, data, flag, p)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* EXPORT */ void
|
/* EXPORT */ void
|
||||||
vsxxx_input(data)
|
vsxxx_input(int data)
|
||||||
int data;
|
|
||||||
{
|
{
|
||||||
struct vsxxx_softc *sc = (void *)vsms_cd.cd_devs[0];
|
struct vsxxx_softc *sc = device_lookup_private(&vsms_cd, 0);
|
||||||
int x, y;
|
int x, y;
|
||||||
|
|
||||||
if (data & VS_START_FRAME)
|
if (data & VS_START_FRAME)
|
||||||
|
|
Loading…
Reference in New Issue