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: Peter Maydell <peter.mayd...@linaro.org> Cc: Gerd Hoffmann <kra...@redhat.com> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: Richard Henderson <r...@twiddle.net> Cc: Eduardo Habkost <ehabk...@redhat.com> Cc: "Michael S. Tsirkin" <m...@redhat.com> Cc: Marcel Apfelbaum <marcel.apfelb...@gmail.com> Cc: qemu-...@nongnu.org Cc: qemu-devel@nongnu.org --- include/hw/display/ramfb.h | 2 +- hw/arm/sysbus-fdt.c | 2 +- hw/arm/virt.c | 2 +- hw/display/ramfb-standalone.c | 4 ++-- hw/i386/pc_piix.c | 2 +- hw/i386/pc_q35.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/hw/display/ramfb.h b/include/hw/display/ramfb.h index b33a2c467b..c4b0150c88 100644 --- a/include/hw/display/ramfb.h +++ b/include/hw/display/ramfb.h @@ -7,6 +7,6 @@ void ramfb_display_update(QemuConsole *con, RAMFBState *s); RAMFBState *ramfb_setup(Error **errp); /* ramfb-standalone.c */ -#define TYPE_RAMFB_DEVICE "ramfb" +#define TYPE_RAMFB "ramfb" #endif /* RAMFB_H */ diff --git a/hw/arm/sysbus-fdt.c b/hw/arm/sysbus-fdt.c index 6b6906f4cf..e8baa118a6 100644 --- a/hw/arm/sysbus-fdt.c +++ b/hw/arm/sysbus-fdt.c @@ -489,7 +489,7 @@ static const BindingEntry bindings[] = { VFIO_PLATFORM_BINDING("amd,xgbe-seattle-v1a", add_amd_xgbe_fdt_node), #endif TYPE_BINDING(TYPE_TPM_TIS_SYSBUS, add_tpm_tis_fdt_node), - TYPE_BINDING(TYPE_RAMFB_DEVICE, no_fdt_node), + TYPE_BINDING(TYPE_RAMFB, no_fdt_node), TYPE_BINDING("", NULL), /* last element */ }; diff --git a/hw/arm/virt.c b/hw/arm/virt.c index acf9bfbece..bf81b5a373 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -2414,7 +2414,7 @@ static void virt_machine_class_init(ObjectClass *oc, void *data) mc->max_cpus = 512; machine_class_allow_dynamic_sysbus_dev(mc, TYPE_VFIO_CALXEDA_XGMAC); machine_class_allow_dynamic_sysbus_dev(mc, TYPE_VFIO_AMD_XGBE); - machine_class_allow_dynamic_sysbus_dev(mc, TYPE_RAMFB_DEVICE); + machine_class_allow_dynamic_sysbus_dev(mc, TYPE_RAMFB); machine_class_allow_dynamic_sysbus_dev(mc, TYPE_VFIO_PLATFORM); machine_class_allow_dynamic_sysbus_dev(mc, TYPE_TPM_TIS_SYSBUS); mc->block_default_type = IF_VIRTIO; diff --git a/hw/display/ramfb-standalone.c b/hw/display/ramfb-standalone.c index 8c0094397f..a86730393b 100644 --- a/hw/display/ramfb-standalone.c +++ b/hw/display/ramfb-standalone.c @@ -9,7 +9,7 @@ typedef struct RAMFBStandaloneState RAMFBStandaloneState; DECLARE_INSTANCE_CHECKER(RAMFBStandaloneState, RAMFB, - TYPE_RAMFB_DEVICE) + TYPE_RAMFB) struct RAMFBStandaloneState { SysBusDevice parent_obj; @@ -51,7 +51,7 @@ static void ramfb_class_initfn(ObjectClass *klass, void *data) } static const TypeInfo ramfb_info = { - .name = TYPE_RAMFB_DEVICE, + .name = TYPE_RAMFB, .parent = TYPE_SYS_BUS_DEVICE, .instance_size = sizeof(RAMFBStandaloneState), .class_init = ramfb_class_initfn, diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 32b1453e6a..7ac4e65820 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -422,7 +422,7 @@ static void pc_i440fx_machine_options(MachineClass *m) m->desc = "Standard PC (i440FX + PIIX, 1996)"; m->default_machine_opts = "firmware=bios-256k.bin"; m->default_display = "std"; - machine_class_allow_dynamic_sysbus_dev(m, TYPE_RAMFB_DEVICE); + machine_class_allow_dynamic_sysbus_dev(m, TYPE_RAMFB); machine_class_allow_dynamic_sysbus_dev(m, TYPE_VMBUS_BRIDGE); } diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c index 0cb9c18cd4..dd2223b659 100644 --- a/hw/i386/pc_q35.c +++ b/hw/i386/pc_q35.c @@ -348,7 +348,7 @@ static void pc_q35_machine_options(MachineClass *m) m->no_floppy = 1; machine_class_allow_dynamic_sysbus_dev(m, TYPE_AMD_IOMMU_DEVICE); machine_class_allow_dynamic_sysbus_dev(m, TYPE_INTEL_IOMMU_DEVICE); - machine_class_allow_dynamic_sysbus_dev(m, TYPE_RAMFB_DEVICE); + machine_class_allow_dynamic_sysbus_dev(m, TYPE_RAMFB); machine_class_allow_dynamic_sysbus_dev(m, TYPE_VMBUS_BRIDGE); m->max_cpus = 288; } -- 2.26.2