]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
hw/pcmcia: Remove PCMCIACardState from "qemu/typedefs.h"
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 11 Jan 2019 14:08:44 +0000 (15:08 +0100)
committerThomas Huth <thuth@redhat.com>
Tue, 22 Jan 2019 04:14:32 +0000 (05:14 +0100)
There is only one header file requiring this typedef (hw/arm/pxa.h),
let it include "hw/pcmcia.h" directly to simplify "qemu/typedefs.h".

To clean "qemu/typedefs.h", move the declaration to "hw/pcmcia.h"
(removing the forward declaration).

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
[thuth: slightly tweaked commit message]
Signed-off-by: Thomas Huth <thuth@redhat.com>
include/hw/arm/pxa.h
include/hw/pcmcia.h
include/qemu/typedefs.h

index 0df1199caa23f6a0983faaa09755d87703b39da6..f6dfb5c0cf0df19f22aca00ed54b63688850c9a2 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "exec/memory.h"
 #include "target/arm/cpu-qom.h"
+#include "hw/pcmcia.h"
 
 /* Interrupt numbers */
 # define PXA2XX_PIC_SSP3       0
index 79cac9c76182bb5e05a575127a925a3f34f2c442..1b4080764f49f34d6afee5ae34eac626f13bd557 100644 (file)
@@ -18,13 +18,13 @@ typedef struct PCMCIASocket {
 #define PCMCIA_CARD_CLASS(cls) \
     OBJECT_CLASS_CHECK(PCMCIACardClass, cls, TYPE_PCMCIA_CARD)
 
-struct PCMCIACardState {
+typedef struct PCMCIACardState {
     /*< private >*/
     DeviceState parent_obj;
     /*< public >*/
 
     PCMCIASocket *slot;
-};
+} PCMCIACardState;
 
 typedef struct PCMCIACardClass {
     /*< private >*/
index 28a8b9e7c2242ba1ed669add85e64b6eebd21401..3bd9215d5501c5582b11f10e31bb7306c6505801 100644 (file)
@@ -78,7 +78,6 @@ typedef struct PCIHostDeviceAddress PCIHostDeviceAddress;
 typedef struct PCIHostState PCIHostState;
 typedef struct PCMachineClass PCMachineClass;
 typedef struct PCMachineState PCMachineState;
-typedef struct PCMCIACardState PCMCIACardState;
 typedef struct PixelFormat PixelFormat;
 typedef struct PostcopyDiscardState PostcopyDiscardState;
 typedef struct Property Property;