diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-02-08 17:44:56 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-02-15 16:58:47 +0100 |
commit | 9a4b35f57eefbfc6977ed47d1f19d839e9e4784d (patch) | |
tree | ca938bc6f9b3a836d3a612521ee06a96a6c34e6f /hw/ide | |
parent | fbb5945e859301e375fb919cb72b86b06116b998 (diff) |
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>
Diffstat (limited to 'hw/ide')
-rw-r--r-- | hw/ide/ich.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/ide/ich.c b/hw/ide/ich.c index 122fc7e0ab..3ea793d790 100644 --- a/hw/ide/ich.c +++ b/hw/ide/ich.c @@ -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); |