ap-device: Rename AP_DEVICE_TYPE to TYPE_AP_DEVICE
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 2 Sep 2020 22:42:13 +0000 (18:42 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 9 Sep 2020 17:20:22 +0000 (13:20 -0400)
This will make the type name constant consistent with the name of
the type checking macro.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20200902224311.1321159-6-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/s390x/ap-device.c
hw/vfio/ap.c
include/hw/s390x/ap-device.h

index fc0b41e9373bc18b9582ab530ddadb78a3119d56..237d1f19c50409ab9de9eb413c59cacccbd03a3c 100644 (file)
@@ -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),
index f399ec0a319f653758c071d4953b9487b78ecfac..68ed059b39617527d6c23ded051d6cc39e07a9ec 100644 (file)
@@ -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,
 };
index fb250a20f3c5ce78770940290406f0d536a111f1..e502745de5ea5045f4475a1f3962b77ff6a22415 100644 (file)
@@ -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 */