diff options
| author | thorpej <thorpej@NetBSD.org> | 2006-03-29 06:28:38 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2006-03-29 06:28:38 +0000 |
| commit | 92c7bba3dffd4533c3852cefae11918b9bd84d1e (patch) | |
| tree | a89895b07d7de989d5083923cea8849ffffc3f77 /sys/dev/dec | |
| parent | a48de83500bb5d6dd2b759ee68753cd4f6149116 (diff) | |
Use device_private().
Diffstat (limited to 'sys/dev/dec')
| -rw-r--r-- | sys/dev/dec/dzkbd.c | 8 | ||||
| -rw-r--r-- | sys/dev/dec/dzms.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/dec/dzkbd.c b/sys/dev/dec/dzkbd.c index 84229c0d620..8c6e0bd5b48 100644 --- a/sys/dev/dec/dzkbd.c +++ b/sys/dev/dec/dzkbd.c @@ -1,4 +1,4 @@ -/* $NetBSD: dzkbd.c,v 1.15 2005/12/11 12:21:20 christos Exp $ */ +/* $NetBSD: dzkbd.c,v 1.16 2006/03/29 06:28:38 thorpej Exp $ */ /* * Copyright (c) 1992, 1993 @@ -45,7 +45,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: dzkbd.c,v 1.15 2005/12/11 12:21:20 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dzkbd.c,v 1.16 2006/03/29 06:28:38 thorpej Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -147,8 +147,8 @@ dzkbd_match(struct device *parent, struct cfdata *cf, void *aux) static void dzkbd_attach(struct device *parent, struct device *self, void *aux) { - struct dz_softc *dz = (void *)parent; - struct dzkbd_softc *dzkbd = (void *)self; + struct dz_softc *dz = device_private(parent); + struct dzkbd_softc *dzkbd = device_private(self); struct dzkm_attach_args *daa = aux; struct dz_linestate *ls; struct dzkbd_internal *dzi; diff --git a/sys/dev/dec/dzms.c b/sys/dev/dec/dzms.c index baa23f01c91..afa2d98e431 100644 --- a/sys/dev/dec/dzms.c +++ b/sys/dev/dec/dzms.c @@ -1,4 +1,4 @@ -/* $NetBSD: dzms.c,v 1.13 2005/12/11 12:21:20 christos Exp $ */ +/* $NetBSD: dzms.c,v 1.14 2006/03/29 06:28:38 thorpej Exp $ */ /* * Copyright (c) 1992, 1993 @@ -45,7 +45,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: dzms.c,v 1.13 2005/12/11 12:21:20 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dzms.c,v 1.14 2006/03/29 06:28:38 thorpej Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -123,8 +123,8 @@ dzms_attach(parent, self, aux) struct device *parent, *self; void *aux; { - struct dz_softc *dz = (void *)parent; - struct dzms_softc *dzms = (void *)self; + struct dz_softc *dz = device_private(parent); + struct dzms_softc *dzms = device_private(self); struct dzkm_attach_args *daa = aux; struct dz_linestate *ls; struct wsmousedev_attach_args a; |
