This will make the type name constant consistent with the name of the type checking macro.
Signed-off-by: Eduardo Habkost <ehabk...@redhat.com> --- Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: Fam Zheng <f...@euphon.net> Cc: qemu-devel@nongnu.org --- hw/scsi/esp-pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/scsi/esp-pci.c b/hw/scsi/esp-pci.c index 2b1198380b..58398609be 100644 --- a/hw/scsi/esp-pci.c +++ b/hw/scsi/esp-pci.c @@ -416,9 +416,9 @@ struct DC390State { }; typedef struct DC390State DC390State; -#define TYPE_DC390_DEVICE "dc390" +#define TYPE_DC390 "dc390" DECLARE_INSTANCE_CHECKER(DC390State, DC390, - TYPE_DC390_DEVICE) + TYPE_DC390) #define EE_ADAPT_SCSI_ID 64 #define EE_MODE2 65 @@ -524,7 +524,7 @@ static void dc390_class_init(ObjectClass *klass, void *data) } static const TypeInfo dc390_info = { - .name = TYPE_DC390_DEVICE, + .name = TYPE_DC390, .parent = TYPE_PCI_ESP, .instance_size = sizeof(DC390State), .class_init = dc390_class_init, -- 2.26.2