[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/6] virtio-vga: Use typedef name for instance_size
From: |
Eduardo Habkost |
Subject: |
[PATCH 6/6] virtio-vga: Use typedef name for instance_size |
Date: |
Mon, 24 Aug 2020 17:59:36 -0400 |
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>
---
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org
---
hw/display/virtio-vga.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/display/virtio-vga.c b/hw/display/virtio-vga.c
index f533d7d1b4..7c995ddc81 100644
--- a/hw/display/virtio-vga.c
+++ b/hw/display/virtio-vga.c
@@ -194,8 +194,8 @@ static void virtio_vga_base_class_init(ObjectClass *klass,
void *data)
static TypeInfo virtio_vga_base_info = {
.name = TYPE_VIRTIO_VGA_BASE,
.parent = TYPE_VIRTIO_PCI,
- .instance_size = sizeof(struct VirtIOVGABase),
- .class_size = sizeof(struct VirtIOVGABaseClass),
+ .instance_size = sizeof(VirtIOVGABase),
+ .class_size = sizeof(VirtIOVGABaseClass),
.class_init = virtio_vga_base_class_init,
.abstract = true,
};
@@ -224,7 +224,7 @@ static void virtio_vga_inst_initfn(Object *obj)
static VirtioPCIDeviceTypeInfo virtio_vga_info = {
.generic_name = TYPE_VIRTIO_VGA,
.parent = TYPE_VIRTIO_VGA_BASE,
- .instance_size = sizeof(struct VirtIOVGA),
+ .instance_size = sizeof(VirtIOVGA),
.instance_init = virtio_vga_inst_initfn,
};
--
2.26.2
- [PATCH 0/6] qom: Use typedefs instead of struct names on instance_size/class_size, Eduardo Habkost, 2020/08/24
- [PATCH 0/6] qom: Use typedefs instead of struct names on instance_size/class_size, Eduardo Habkost, 2020/08/24
- [PATCH 1/6] xilinx_axidma: Use typedef name for instance_size, Eduardo Habkost, 2020/08/24
- [PATCH 2/6] omap_intc: Use typedef name for instance_size, Eduardo Habkost, 2020/08/24
- [PATCH 3/6] lpc_ich9: Use typedef name for instance_size, Eduardo Habkost, 2020/08/24
- [PATCH 4/6] xilinx_axienet: Use typedef name for instance_size, Eduardo Habkost, 2020/08/24
- [PATCH 5/6] vhost-user-vga: Use typedef name for instance_size, Eduardo Habkost, 2020/08/24
- [PATCH 6/6] virtio-vga: Use typedef name for instance_size,
Eduardo Habkost <=