Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pad Catch up to audio(4) device_t/softc split.



details:   https://anonhg.NetBSD.org/src/rev/816a10614572
branches:  trunk
changeset: 747268:816a10614572
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Sep 07 18:23:06 2009 +0000

description:
Catch up to audio(4) device_t/softc split.

diffstat:

 sys/dev/pad/padvol.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 08c37a6d0597 -r 816a10614572 sys/dev/pad/padvol.c
--- a/sys/dev/pad/padvol.c      Mon Sep 07 17:56:52 2009 +0000
+++ b/sys/dev/pad/padvol.c      Mon Sep 07 18:23:06 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: padvol.c,v 1.3 2008/06/06 20:51:51 mlelstv Exp $ */
+/* $NetBSD: padvol.c,v 1.4 2009/09/07 18:23:06 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: padvol.c,v 1.3 2008/06/06 20:51:51 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: padvol.c,v 1.4 2009/09/07 18:23:06 jmcneill Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -79,7 +79,7 @@
        int m, err;
 
        pf = (pad_filter_t *)self;
-       sc = (pad_softc_t *)pf->audiosc->sc_dev;
+       sc = device_private(pf->audiosc->sc_dev);
        this = &pf->base;
        max_used = (max_used + 1) & ~1;
 
@@ -105,7 +105,7 @@
        int m, err;
 
        pf = (pad_filter_t *)self;
-       sc = (pad_softc_t *)pf->audiosc->sc_dev;
+       sc = device_private(pf->audiosc->sc_dev);
        this = &pf->base;
        max_used = (max_used + 1) & ~1;
 



Home | Main Index | Thread Index | Old Index