Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/acorn26/ioc Missed needed use of device_private
details: https://anonhg.NetBSD.org/src/rev/c95872ecb6fd
branches: trunk
changeset: 765702:c95872ecb6fd
user: matt <matt%NetBSD.org@localhost>
date: Fri Jun 03 07:21:32 2011 +0000
description:
Missed needed use of device_private
diffstat:
sys/arch/acorn26/ioc/latches.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 2cc68812637d -r c95872ecb6fd sys/arch/acorn26/ioc/latches.c
--- a/sys/arch/acorn26/ioc/latches.c Fri Jun 03 07:08:48 2011 +0000
+++ b/sys/arch/acorn26/ioc/latches.c Fri Jun 03 07:21:32 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: latches.c,v 1.5 2009/01/07 00:09:24 bjh21 Exp $ */
+/* $NetBSD: latches.c,v 1.6 2011/06/03 07:21:32 matt Exp $ */
/*-
* Copyright (c) 2001 Ben Harris
@@ -29,7 +29,7 @@
#include <sys/param.h>
-__KERNEL_RCSID(0, "$NetBSD: latches.c,v 1.5 2009/01/07 00:09:24 bjh21 Exp $");
+__KERNEL_RCSID(0, "$NetBSD: latches.c,v 1.6 2011/06/03 07:21:32 matt Exp $");
#include <sys/device.h>
#include <sys/systm.h>
@@ -101,7 +101,7 @@
void
latcha_update(u_int8_t mask, u_int8_t value)
{
- struct latches_softc *sc = (void *)the_latches;
+ struct latches_softc *sc = device_private(the_latches);
sc->sc_latcha = (sc->sc_latcha & ~mask) | value;
bus_space_write_1(sc->sc_iot, sc->sc_ioh, LATCH_A, sc->sc_latcha);
@@ -110,7 +110,7 @@
void
latchb_update(u_int8_t mask, u_int8_t value)
{
- struct latches_softc *sc = (void *)the_latches;
+ struct latches_softc *sc = device_private(the_latches);
sc->sc_latchb = (sc->sc_latchb & ~mask) | value;
bus_space_write_1(sc->sc_iot, sc->sc_ioh, LATCH_B, sc->sc_latcha);
Home |
Main Index |
Thread Index |
Old Index