|
From: | Phil Dennis-Jordan |
Subject: | Re: [PATCH v3 02/14] hw/display/apple-gfx: Adds PCI implementation |
Date: | Sat, 28 Sep 2024 15:33:46 +0200 |
> +typedef struct AppleGFXPCIState {
> + PCIDevice parent_obj;
> +
> + AppleGFXState common;
> +} AppleGFXPCIState;
You don't need typedef here because OBJECT_DECLARE_SIMPLE_TYPE will add
that. You can also put the struct AppleGFXPCIState definition after the
OBJECT_DECLARE_SIMPLE_TYPE line. (See other devices for example.)
[Prev in Thread] | Current Thread | [Next in Thread] |