aboutsummaryrefslogtreecommitdiff
path: root/hw/i386/kvm/ioapic.c
diff options
context:
space:
mode:
authorLi Qiang <liq3ea@163.com>2019-01-04 18:38:31 -0800
committerLaurent Vivier <laurent@vivier.eu>2019-01-09 11:33:47 +0100
commit34bec7a8d04f23d6258dcf338894956b945673a5 (patch)
tree2807c9ac3753cd1e722318b46e64a26af5af8be4 /hw/i386/kvm/ioapic.c
parent0cd0589ecf4248c489c2bdbeb1192d16e96d77e1 (diff)
ioapic: use TYPE_FOO MACRO than constant string
Make them more QOMConventional. Cc:qemu-trivial@nongnu.org Signed-off-by: Li Qiang <liq3ea@163.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20190105023831.66910-1-liq3ea@163.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/i386/kvm/ioapic.c')
-rw-r--r--hw/i386/kvm/ioapic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/kvm/ioapic.c b/hw/i386/kvm/ioapic.c
index 5b40d75439..e453692199 100644
--- a/hw/i386/kvm/ioapic.c
+++ b/hw/i386/kvm/ioapic.c
@@ -163,7 +163,7 @@ static void kvm_ioapic_class_init(ObjectClass *klass, void *data)
}
static const TypeInfo kvm_ioapic_info = {
- .name = "kvm-ioapic",
+ .name = TYPE_KVM_IOAPIC,
.parent = TYPE_IOAPIC_COMMON,
.instance_size = sizeof(KVMIOAPICState),
.class_init = kvm_ioapic_class_init,