aboutsummaryrefslogtreecommitdiff
path: root/hw/vfio
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2020-09-02 18:42:16 -0400
committerEduardo Habkost <ehabkost@redhat.com>2020-09-09 13:20:22 -0400
commit8b3a1ee5f2f94ad8c27257496c2021a431116d18 (patch)
tree1500335b714778566135d4c09fb98dcb29371849 /hw/vfio
parent7f46ed2b38284821824f22cf51679703c986fd11 (diff)
downloadqemu-8b3a1ee5f2f94ad8c27257496c2021a431116d18.zip
qemu-8b3a1ee5f2f94ad8c27257496c2021a431116d18.tar.gz
qemu-8b3a1ee5f2f94ad8c27257496c2021a431116d18.tar.bz2
vfio: Rename VFIO_AP_DEVICE_TYPE to TYPE_VFIO_AP_DEVICE
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-9-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/vfio')
-rw-r--r--hw/vfio/ap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/vfio/ap.c b/hw/vfio/ap.c
index 68ed059..582c091 100644
--- a/hw/vfio/ap.c
+++ b/hw/vfio/ap.c
@@ -30,7 +30,7 @@
#include "exec/address-spaces.h"
#include "qom/object.h"
-#define VFIO_AP_DEVICE_TYPE "vfio-ap"
+#define TYPE_VFIO_AP_DEVICE "vfio-ap"
struct VFIOAPDevice {
APDevice apdev;
@@ -39,7 +39,7 @@ struct VFIOAPDevice {
typedef struct VFIOAPDevice VFIOAPDevice;
DECLARE_INSTANCE_CHECKER(VFIOAPDevice, VFIO_AP_DEVICE,
- VFIO_AP_DEVICE_TYPE)
+ TYPE_VFIO_AP_DEVICE)
static void vfio_ap_compute_needs_reset(VFIODevice *vdev)
{
@@ -72,7 +72,7 @@ static VFIOGroup *vfio_ap_get_group(VFIOAPDevice *vapdev, Error **errp)
if (!group_path) {
error_setg(errp, "%s: no iommu_group found for %s: %s",
- VFIO_AP_DEVICE_TYPE, vapdev->vdev.sysfsdev, gerror->message);
+ TYPE_VFIO_AP_DEVICE, vapdev->vdev.sysfsdev, gerror->message);
g_error_free(gerror);
return NULL;
}
@@ -176,7 +176,7 @@ static void vfio_ap_class_init(ObjectClass *klass, void *data)
}
static const TypeInfo vfio_ap_info = {
- .name = VFIO_AP_DEVICE_TYPE,
+ .name = TYPE_VFIO_AP_DEVICE,
.parent = TYPE_AP_DEVICE,
.instance_size = sizeof(VFIOAPDevice),
.class_init = vfio_ap_class_init,