projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b5a44c
)
ohci: get ohci state via container_of()
author
Gerd Hoffmann
<kraxel@redhat.com>
Wed, 15 Dec 2010 10:47:19 +0000
(11:47 +0100)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Wed, 4 May 2011 12:11:08 +0000
(14:11 +0200)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-ohci.c
patch
|
blob
|
history
diff --git
a/hw/usb-ohci.c
b/hw/usb-ohci.c
index 0ad4f555d0f6ccb58c6f964423e9a13aa1738eba..7678cdba114d62bd3303b1191f9f91d80e2cd62b 100644
(file)
--- a/
hw/usb-ohci.c
+++ b/
hw/usb-ohci.c
@@
-577,7
+577,7
@@
static void ohci_process_lists(OHCIState *ohci, int completion);
static void ohci_async_complete_packet(USBPacket *packet, void *opaque)
{
- OHCIState *ohci =
opaque
;
+ OHCIState *ohci =
container_of(packet, OHCIState, usb_packet)
;
#ifdef DEBUG_PACKET
DPRINTF("Async packet complete\n");
#endif