mirror of https://github.com/xqemu/xqemu.git
ohci: get ohci state via container_of()
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
7b5a44c546
commit
9066df13a3
|
@ -577,7 +577,7 @@ static void ohci_process_lists(OHCIState *ohci, int completion);
|
||||||
|
|
||||||
static void ohci_async_complete_packet(USBPacket *packet, void *opaque)
|
static void ohci_async_complete_packet(USBPacket *packet, void *opaque)
|
||||||
{
|
{
|
||||||
OHCIState *ohci = opaque;
|
OHCIState *ohci = container_of(packet, OHCIState, usb_packet);
|
||||||
#ifdef DEBUG_PACKET
|
#ifdef DEBUG_PACKET
|
||||||
DPRINTF("Async packet complete\n");
|
DPRINTF("Async packet complete\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue