diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-11-24 22:43:20 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-11-24 22:43:20 +0000 |
commit | 1b1b775efbf1ce5de10a4e90ce6f1b8fef11cf6d (patch) | |
tree | 8f11d2dab7028064b566ebe83b7f71890c6f1224 /sys/arch/mvme68k/dev/cl.c | |
parent | 3b6fc494d6c3ea81b031d03cd56c0569869c875f (diff) |
Prefer vaddr_t and paddr_t types in device softc, instead of void * and
heavy casts. Improves readability, no functional change.
Diffstat (limited to 'sys/arch/mvme68k/dev/cl.c')
-rw-r--r-- | sys/arch/mvme68k/dev/cl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/mvme68k/dev/cl.c b/sys/arch/mvme68k/dev/cl.c index 074bbf34166..af78492f3d2 100644 --- a/sys/arch/mvme68k/dev/cl.c +++ b/sys/arch/mvme68k/dev/cl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cl.c,v 1.40 2004/08/09 06:04:18 miod Exp $ */ +/* $OpenBSD: cl.c,v 1.41 2005/11/24 22:43:16 miod Exp $ */ /* * Copyright (c) 1995 Dale Rahn. All rights reserved. @@ -73,7 +73,7 @@ #define CL_RXINTR 0x02 struct cl_cons { - void *cl_paddr; + paddr_t cl_paddr; struct clreg *cl_vaddr; volatile struct pcctworeg *pcctwoaddr; u_char channel; @@ -949,8 +949,8 @@ clcninit(cp) { struct clreg *cl_reg; - cl_cons.cl_paddr = (void *)0xfff45000; - cl_cons.cl_vaddr = (struct clreg *)IIOV(cl_cons.cl_paddr); + cl_cons.cl_paddr = 0xfff45000; + cl_cons.cl_vaddr = (struct clreg *)IIOV(cl_cons.cl_paddr); cl_cons.pcctwoaddr = (void *)IIOV(0xfff42000); cl_reg = cl_cons.cl_vaddr; |