Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb finish previous and convert two &sc->sc_ubsa ref...



details:   https://anonhg.NetBSD.org/src/rev/2dfbda0e802c
branches:  trunk
changeset: 998847:2dfbda0e802c
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat May 04 23:36:14 2019 +0000

description:
finish previous and convert two &sc->sc_ubsa refs to sc.

diffstat:

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

diffs (36 lines):

diff -r da219125ec60 -r 2dfbda0e802c sys/dev/usb/uhmodem.c
--- a/sys/dev/usb/uhmodem.c     Sat May 04 23:07:07 2019 +0000
+++ b/sys/dev/usb/uhmodem.c     Sat May 04 23:36:14 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhmodem.c,v 1.17 2019/05/04 23:07:07 mrg Exp $ */
+/*     $NetBSD: uhmodem.c,v 1.18 2019/05/04 23:36:14 mrg Exp $ */
 
 /*
  * Copyright (c) 2008 Yojiro UO <yuo%nui.org@localhost>.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhmodem.c,v 1.17 2019/05/04 23:07:07 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhmodem.c,v 1.18 2019/05/04 23:36:14 mrg Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -354,7 +354,7 @@
                ucaa.ucaa_device = dev;
                ucaa.ucaa_iface = sc->sc_iface[i];
                ucaa.ucaa_methods = &uhmodem_methods;
-               ucaa.ucaa_arg = &sc->sc_ubsa;
+               ucaa.ucaa_arg = sc;
                ucaa.ucaa_info = comname;
                DPRINTF(("uhmodem: int#=%d, in = 0x%x, out = 0x%x, intr = 0x%x\n",
                    i, ucaa.ucaa_bulkin, ucaa.ucaa_bulkout,
@@ -363,7 +363,7 @@
                                 &ucaa, ucomprint, ucomsubmatch);
 
                /* issue endpoint halt to each interface */
-               err = uhmodem_endpointhalt(&sc->sc_ubsa, i);
+               err = uhmodem_endpointhalt(sc, i);
                if (err)
                        aprint_error("%s: endpointhalt fail\n", __func__);
                else



Home | Main Index | Thread Index | Old Index