[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/6] lpc_ich9: Use typedef name for instance_size
From: |
Eduardo Habkost |
Subject: |
[PATCH 3/6] lpc_ich9: Use typedef name for instance_size |
Date: |
Mon, 24 Aug 2020 17:59:33 -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: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Cc: qemu-devel@nongnu.org
---
hw/isa/lpc_ich9.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c
index cd6e169d47..3303d2eab6 100644
--- a/hw/isa/lpc_ich9.c
+++ b/hw/isa/lpc_ich9.c
@@ -792,7 +792,7 @@ static void ich9_lpc_class_init(ObjectClass *klass, void
*data)
static const TypeInfo ich9_lpc_info = {
.name = TYPE_ICH9_LPC_DEVICE,
.parent = TYPE_PCI_DEVICE,
- .instance_size = sizeof(struct ICH9LPCState),
+ .instance_size = sizeof(ICH9LPCState),
.instance_init = ich9_lpc_initfn,
.class_init = ich9_lpc_class_init,
.interfaces = (InterfaceInfo[]) {
--
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 <=
- [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, 2020/08/24