mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
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>
This commit is contained in:
parent
ae60fea97c
commit
d47e59b8b8
7 changed files with 28 additions and 26 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue