]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - include/hw/misc/bcm2835_thermal.h
Move QOM typedefs and add missing includes
[thirdparty/qemu.git] / include / hw / misc / bcm2835_thermal.h
index c3651b27ec60193a5573e2dbe7c9ce2205778983..2b937527eb961b223fc1ec7bc6a9950e066a38bc 100644 (file)
 #define HW_MISC_BCM2835_THERMAL_H
 
 #include "hw/sysbus.h"
+#include "qom/object.h"
 
 #define TYPE_BCM2835_THERMAL "bcm2835-thermal"
 
+typedef struct Bcm2835ThermalState Bcm2835ThermalState;
 #define BCM2835_THERMAL(obj) \
     OBJECT_CHECK(Bcm2835ThermalState, (obj), TYPE_BCM2835_THERMAL)
 
-typedef struct {
+struct Bcm2835ThermalState {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
     MemoryRegion iomem;
     uint32_t ctl;
-} Bcm2835ThermalState;
+};
 
 #endif