projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67d58d1
)
hw/usb/xhci-nec: Replace container_of() by NEC_XHCI() QOM cast macro
author
Philippe Mathieu-Daudé
<philmd@linaro.org>
Fri, 17 Feb 2023 13:12:13 +0000
(14:12 +0100)
committer
Philippe Mathieu-Daudé
<philmd@linaro.org>
Mon, 27 Feb 2023 21:29:02 +0000
(22:29 +0100)
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <
20230220150515
.32549-8-philmd@linaro.org>
hw/usb/hcd-xhci-nec.c
patch
|
blob
|
history
diff --git
a/hw/usb/hcd-xhci-nec.c
b/hw/usb/hcd-xhci-nec.c
index d732be0ef98acebb8fd29fad3b5e605d6d1ab2ea..328e5bfe7c87658b1d351e23f14831aa4a59e288 100644
(file)
--- a/
hw/usb/hcd-xhci-nec.c
+++ b/
hw/usb/hcd-xhci-nec.c
@@
-53,7
+53,7
@@
static Property nec_xhci_properties[] = {
static void nec_xhci_instance_init(Object *obj)
{
XHCIPciState *pci = XHCI_PCI(obj);
- XHCINecState *nec =
container_of(pci, XHCINecState, parent_
obj);
+ XHCINecState *nec =
NEC_XHCI(
obj);
pci->xhci.flags = nec->flags;
pci->xhci.numintrs = nec->intrs;