mirror of https://gitee.com/openkylin/qemu.git
virtio-vga: Use typedef name for instance_size
This makes the code consistent with the rest of QOM code in QEMU, and will make automated conversion to type declaration macros simpler. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Message-Id: <20200824215936.2961951-7-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
2ada901f2e
commit
b84bf23c88
|
@ -195,8 +195,8 @@ static void virtio_vga_base_class_init(ObjectClass *klass, void *data)
|
||||||
static TypeInfo virtio_vga_base_info = {
|
static TypeInfo virtio_vga_base_info = {
|
||||||
.name = TYPE_VIRTIO_VGA_BASE,
|
.name = TYPE_VIRTIO_VGA_BASE,
|
||||||
.parent = TYPE_VIRTIO_PCI,
|
.parent = TYPE_VIRTIO_PCI,
|
||||||
.instance_size = sizeof(struct VirtIOVGABase),
|
.instance_size = sizeof(VirtIOVGABase),
|
||||||
.class_size = sizeof(struct VirtIOVGABaseClass),
|
.class_size = sizeof(VirtIOVGABaseClass),
|
||||||
.class_init = virtio_vga_base_class_init,
|
.class_init = virtio_vga_base_class_init,
|
||||||
.abstract = true,
|
.abstract = true,
|
||||||
};
|
};
|
||||||
|
@ -226,7 +226,7 @@ static void virtio_vga_inst_initfn(Object *obj)
|
||||||
static VirtioPCIDeviceTypeInfo virtio_vga_info = {
|
static VirtioPCIDeviceTypeInfo virtio_vga_info = {
|
||||||
.generic_name = TYPE_VIRTIO_VGA,
|
.generic_name = TYPE_VIRTIO_VGA,
|
||||||
.parent = TYPE_VIRTIO_VGA_BASE,
|
.parent = TYPE_VIRTIO_VGA_BASE,
|
||||||
.instance_size = sizeof(struct VirtIOVGA),
|
.instance_size = sizeof(VirtIOVGA),
|
||||||
.instance_init = virtio_vga_inst_initfn,
|
.instance_init = virtio_vga_inst_initfn,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue