]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
hw/acpi/piix4: Move TYPE_PIIX4_PM to a public header
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Sat, 27 Apr 2019 14:40:23 +0000 (16:40 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 17 May 2019 13:19:19 +0000 (15:19 +0200)
Move the TYPE_PIIX4_PM definition to the corresponding header,
so other files can use it.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190427144025.22880-2-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/acpi/piix4.c
include/hw/acpi/piix4.h

index 9c079d6834170f313732d9fe071413d363af042e..160e7308c5132ada37fc665ad8f21847f34338d8 100644 (file)
@@ -92,8 +92,6 @@ typedef struct PIIX4PMState {
     MemHotplugState acpi_memory_hotplug;
 } PIIX4PMState;
 
-#define TYPE_PIIX4_PM "PIIX4_PM"
-
 #define PIIX4_PM(obj) \
     OBJECT_CHECK(PIIX4PMState, (obj), TYPE_PIIX4_PM)
 
index 26c2370e308cfdbedaacd7dfc224de27125c6dff..57d7e1cda203823d6220f31d5ce75df227a55043 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef HW_ACPI_PIIX4_H
 #define HW_ACPI_PIIX4_H
 
+#define TYPE_PIIX4_PM "PIIX4_PM"
+
 Object *piix4_pm_find(void);
 
 #endif