[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 15/33] ap-device: Rename AP_DEVICE_TYPE to TYPE_AP_DEVICE
From: |
Eduardo Habkost |
Subject: |
[PULL 15/33] ap-device: Rename AP_DEVICE_TYPE to TYPE_AP_DEVICE |
Date: |
Thu, 10 Sep 2020 14:20:54 -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>
---
include/hw/s390x/ap-device.h | 4 ++--
hw/s390x/ap-device.c | 2 +-
hw/vfio/ap.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/hw/s390x/ap-device.h b/include/hw/s390x/ap-device.h
index fb250a20f3..e502745de5 100644
--- a/include/hw/s390x/ap-device.h
+++ b/include/hw/s390x/ap-device.h
@@ -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 */
diff --git a/hw/s390x/ap-device.c b/hw/s390x/ap-device.c
index fc0b41e937..237d1f19c5 100644
--- a/hw/s390x/ap-device.c
+++ b/hw/s390x/ap-device.c
@@ -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),
diff --git a/hw/vfio/ap.c b/hw/vfio/ap.c
index f399ec0a31..68ed059b39 100644
--- a/hw/vfio/ap.c
+++ b/hw/vfio/ap.c
@@ -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,
};
--
2.26.2
- [PULL 05/33] qom: DECLARE_*_CHECKERS macros, (continued)
- [PULL 05/33] qom: DECLARE_*_CHECKERS macros, Eduardo Habkost, 2020/09/10
- [PULL 06/33] qom: Make type checker functions accept const pointers, Eduardo Habkost, 2020/09/10
- [PULL 01/33] memory: Remove kernel-doc comment marker, Eduardo Habkost, 2020/09/10
- [PULL 04/33] qom: Allow class type name to be specified in OBJECT_DECLARE*, Eduardo Habkost, 2020/09/10
- [PULL 08/33] Delete duplicate QOM typedefs, Eduardo Habkost, 2020/09/10
- [PULL 12/33] Use OBJECT_DECLARE_TYPE where possible, Eduardo Habkost, 2020/09/10
- [PULL 11/33] Use DECLARE_*CHECKER* when possible (--force mode), Eduardo Habkost, 2020/09/10
- [PULL 14/33] gpex: Fix type checking function name, Eduardo Habkost, 2020/09/10
- [PULL 13/33] Use OBJECT_DECLARE_SIMPLE_TYPE when possible, Eduardo Habkost, 2020/09/10
- [PULL 07/33] codeconverter: script for automating QOM code cleanups, Eduardo Habkost, 2020/09/10
- [PULL 15/33] ap-device: Rename AP_DEVICE_TYPE to TYPE_AP_DEVICE,
Eduardo Habkost <=
- [PULL 17/33] vfio: Rename VFIO_AP_DEVICE_TYPE to TYPE_VFIO_AP_DEVICE, Eduardo Habkost, 2020/09/10
- [PULL 16/33] dev-smartcard-reader: Rename CCID_DEV_NAME to TYPE_USB_CCID_DEV, Eduardo Habkost, 2020/09/10
- [PULL 19/33] ahci: Rename ICH_AHCI to ICH9_AHCI, Eduardo Habkost, 2020/09/10
- [PULL 18/33] vmgenid: Rename VMGENID_DEVICE to TYPE_VMGENID, Eduardo Habkost, 2020/09/10
- [PULL 27/33] tusb6010: Rename TUSB to TUSB6010, Eduardo Habkost, 2020/09/10
- [PULL 20/33] esp: Rename ESP_STATE to ESP, Eduardo Habkost, 2020/09/10
- [PULL 21/33] filter-rewriter: Rename FILTER_COLO_REWRITER to FILTER_REWRITER, Eduardo Habkost, 2020/09/10
- [PULL 10/33] Use DECLARE_*CHECKER* macros, Eduardo Habkost, 2020/09/10
- [PULL 23/33] sabre: Rename SABRE_DEVICE to SABRE, Eduardo Habkost, 2020/09/10
- [PULL 24/33] usb: Rename USB_SERIAL_DEV to USB_SERIAL, Eduardo Habkost, 2020/09/10