use device_lookup_private to get softc

XXX this driver assumes unit of zero
This commit is contained in:
cegger 2008-06-12 21:51:12 +00:00
parent 17dbee905c
commit 332bec333d
1 changed files with 4 additions and 5 deletions

View File

@ -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.
@ -30,7 +30,7 @@
*/
#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
@ -118,10 +118,9 @@ vsxxx_ioctl(v, cmd, data, flag, p)
}
/* EXPORT */ void
vsxxx_input(data)
int data;
vsxxx_input(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;
if (data & VS_START_FRAME)