Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/dwc2 Use DWC2_XFER2DPIPE
details: https://anonhg.NetBSD.org/src/rev/e9b596511bdd
branches: trunk
changeset: 330184:e9b596511bdd
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Jun 28 07:01:51 2014 +0000
description:
Use DWC2_XFER2DPIPE
diffstat:
sys/external/bsd/dwc2/dwc2.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 88c5f550f057 -r e9b596511bdd sys/external/bsd/dwc2/dwc2.c
--- a/sys/external/bsd/dwc2/dwc2.c Fri Jun 27 22:27:16 2014 +0000
+++ b/sys/external/bsd/dwc2/dwc2.c Sat Jun 28 07:01:51 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc2.c,v 1.27 2014/06/27 07:28:26 skrll Exp $ */
+/* $NetBSD: dwc2.c,v 1.28 2014/06/28 07:01:51 skrll Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.27 2014/06/27 07:28:26 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.28 2014/06/28 07:01:51 skrll Exp $");
#include "opt_usb.h"
@@ -1096,7 +1096,7 @@
Static usbd_status
dwc2_device_intr_start(usbd_xfer_handle xfer)
{
- struct dwc2_pipe *dpipe = (struct dwc2_pipe *)xfer->pipe;
+ struct dwc2_pipe *dpipe = DWC2_XFER2DPIPE(xfer)
usbd_device_handle dev = dpipe->pipe.device;
struct dwc2_softc *sc = dev->bus->hci_private;
usbd_status err;
@@ -1178,7 +1178,7 @@
usbd_status
dwc2_device_isoc_start(usbd_xfer_handle xfer)
{
- struct dwc2_pipe *dpipe = (struct dwc2_pipe *)xfer->pipe;
+ struct dwc2_pipe *dpipe = DWC2_XFER2DPIPE(xfer);
usbd_device_handle dev = dpipe->pipe.device;
struct dwc2_softc *sc = dev->bus->hci_private;
usbd_status err;
Home |
Main Index |
Thread Index |
Old Index