]> Git Repo - qemu.git/commitdiff
qdev/prop: convert integratorcp.c to helper macros.
authorGerd Hoffmann <[email protected]>
Mon, 3 Aug 2009 15:35:26 +0000 (17:35 +0200)
committerAnthony Liguori <[email protected]>
Mon, 10 Aug 2009 18:05:51 +0000 (13:05 -0500)
Signed-off-by: Gerd Hoffmann <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
Message-Id:

hw/integratorcp.c

index ddc8d8556f2bde9c97b6b6f074de6bceeea79218..2d83004d03011a3f767f039c625195648ea81128 100644 (file)
@@ -526,12 +526,8 @@ static SysBusDeviceInfo core_info = {
     .qdev.name  = "integrator_core",
     .qdev.size  = sizeof(integratorcm_state),
     .qdev.props = (Property[]) {
-        {
-            .name   = "memsz",
-            .info   = &qdev_prop_uint32,
-            .offset = offsetof(integratorcm_state, memsz),
-        },
-        {/* end of list */}
+        DEFINE_PROP_UINT32("memsz", integratorcm_state, memsz, 0),
+        DEFINE_PROP_END_OF_LIST(),
     }
 };
 
This page took 0.031383 seconds and 4 git commands to generate.