diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-06-21 11:52:28 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-07-05 15:09:02 +0200 |
commit | d47e59b8b8adc96a2052f7e004cb12b6ff62edd9 (patch) | |
tree | 301cdacdde8bff6220c9405499ea925a92ea7a26 /hw/usb-ehci.c | |
parent | ae60fea97c78e7f855794f2770517244d93def73 (diff) |
usb: Make port wakeup and complete ops take a USBPort instead of a Device
This makes them consistent with the attach and detach ops, and in general
it makes sense to make portops take a port as argument. This also makes
adding support for a companion controller easier / cleaner.
[ kraxel: fix usb-musb.c build ]
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb-ehci.c')
-rw-r--r-- | hw/usb-ehci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index 88cb2c249b..428c90bcf3 100644 --- a/hw/usb-ehci.c +++ b/hw/usb-ehci.c @@ -1111,7 +1111,7 @@ static int ehci_buffer_rw(EHCIQueue *q, int bytes, int rw) return 0; } -static void ehci_async_complete_packet(USBDevice *dev, USBPacket *packet) +static void ehci_async_complete_packet(USBPort *port, USBPacket *packet) { EHCIQueue *q = container_of(packet, EHCIQueue, packet); |