hw/usb/xhci-nec: Replace container_of() by NEC_XHCI() QOM cast macro
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>
This commit is contained in:
parent
67d58d1949
commit
b08bb02bcc
@ -53,7 +53,7 @@ static Property nec_xhci_properties[] = {
|
|||||||
static void nec_xhci_instance_init(Object *obj)
|
static void nec_xhci_instance_init(Object *obj)
|
||||||
{
|
{
|
||||||
XHCIPciState *pci = XHCI_PCI(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.flags = nec->flags;
|
||||||
pci->xhci.numintrs = nec->intrs;
|
pci->xhci.numintrs = nec->intrs;
|
||||||
|
Loading…
Reference in New Issue
Block a user