lpc_ich9: Use typedef name for instance_size
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 24 Aug 2020 21:59:33 +0000 (17:59 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 9 Sep 2020 17:20:22 +0000 (13:20 -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>
Message-Id: <20200824215936.2961951-4-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/isa/lpc_ich9.c

index cd6e169d47a05ac8e091c7aecea26697a0f1fbf4..3303d2eab6ca4c010652d18a75006c44eaa88be9 100644 (file)
@@ -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[]) {