hw/ide/ich9: Use AHCIPCIState typedef
QEMU coding style recommend using structure typedefs: https://www.qemu.org/docs/master/devel/style.html#typedefs Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240208181245.96617-2-philmd@linaro.org>
This commit is contained in:
parent
fbb5945e85
commit
9a4b35f57e
@ -100,14 +100,14 @@ static void pci_ich9_reset(DeviceState *dev)
|
||||
|
||||
static void pci_ich9_ahci_init(Object *obj)
|
||||
{
|
||||
struct AHCIPCIState *d = ICH9_AHCI(obj);
|
||||
AHCIPCIState *d = ICH9_AHCI(obj);
|
||||
|
||||
ahci_init(&d->ahci, DEVICE(obj));
|
||||
}
|
||||
|
||||
static void pci_ich9_ahci_realize(PCIDevice *dev, Error **errp)
|
||||
{
|
||||
struct AHCIPCIState *d;
|
||||
AHCIPCIState *d;
|
||||
int sata_cap_offset;
|
||||
uint8_t *sata_cap;
|
||||
d = ICH9_AHCI(dev);
|
||||
@ -156,7 +156,7 @@ static void pci_ich9_ahci_realize(PCIDevice *dev, Error **errp)
|
||||
|
||||
static void pci_ich9_uninit(PCIDevice *dev)
|
||||
{
|
||||
struct AHCIPCIState *d;
|
||||
AHCIPCIState *d;
|
||||
d = ICH9_AHCI(dev);
|
||||
|
||||
msi_uninit(dev);
|
||||
|
Loading…
Reference in New Issue
Block a user