From: BALATON Zoltan Date: Thu, 23 Oct 2025 15:26:23 +0000 (+0200) Subject: hw/pci-host/raven: Simplify host bridge type declaration X-Git-Tag: v10.2.0-rc1~41^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9efa75e9bcb4184090e6677d6437ceaebba86005;p=thirdparty%2Fqemu.git hw/pci-host/raven: Simplify host bridge type declaration Use OBJECT_DECLARE_SIMPLE_TYPE macro instead of open coding it and change state struct name to match the previous typedef. Signed-off-by: BALATON Zoltan Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Mark Cave-Ayland Message-ID: Signed-off-by: Philippe Mathieu-Daudé --- diff --git a/hw/pci-host/raven.c b/hw/pci-host/raven.c index fa76e5170c..ea5ad69547 100644 --- a/hw/pci-host/raven.c +++ b/hw/pci-host/raven.c @@ -39,11 +39,9 @@ #define TYPE_RAVEN_PCI_DEVICE "raven" #define TYPE_RAVEN_PCI_HOST_BRIDGE "raven-pcihost" -typedef struct PRePPCIState PREPPCIState; -DECLARE_INSTANCE_CHECKER(PREPPCIState, RAVEN_PCI_HOST_BRIDGE, - TYPE_RAVEN_PCI_HOST_BRIDGE) +OBJECT_DECLARE_SIMPLE_TYPE(PREPPCIState, RAVEN_PCI_HOST_BRIDGE) -struct PRePPCIState { +struct PREPPCIState { PCIHostState parent_obj; OrIRQState *or_irq;