@@ -14,7 +14,7 @@
#include "hw/qdev-core.h"
#include "qom/object.h"
-#define AP_DEVICE_TYPE "ap-device"
+#define TYPE_AP_DEVICE "ap-device"
struct APDevice {
DeviceState parent_obj;
@@ -22,6 +22,6 @@ struct APDevice {
typedef struct APDevice APDevice;
DECLARE_INSTANCE_CHECKER(APDevice, AP_DEVICE,
- AP_DEVICE_TYPE)
+ TYPE_AP_DEVICE)
#endif /* HW_S390X_AP_DEVICE_H */
@@ -21,7 +21,7 @@ static void ap_class_init(ObjectClass *klass, void *data)
}
static const TypeInfo ap_device_info = {
- .name = AP_DEVICE_TYPE,
+ .name = TYPE_AP_DEVICE,
.parent = TYPE_DEVICE,
.instance_size = sizeof(APDevice),
.class_size = sizeof(DeviceClass),
@@ -177,7 +177,7 @@ static void vfio_ap_class_init(ObjectClass *klass, void *data)
static const TypeInfo vfio_ap_info = {
.name = VFIO_AP_DEVICE_TYPE,
- .parent = AP_DEVICE_TYPE,
+ .parent = TYPE_AP_DEVICE,
.instance_size = sizeof(VFIOAPDevice),
.class_init = vfio_ap_class_init,
};