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 <balaton@eik.bme.hu> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Message-ID: <e14793737092eac0642aa87214801a1f4bb1e2e7.1761232472.git.balaton@eik.bme.hu> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
committed by
Philippe Mathieu-Daudé
parent
7695e59e5e
commit
9efa75e9bc
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user