qdev/prop: convert arm_sysctl.c to helper macros.
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 3 Aug 2009 15:35:20 +0000 (17:35 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 10 Aug 2009 18:05:50 +0000 (13:05 -0500)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

hw/arm_sysctl.c

index bb005c8..11b3787 100644 (file)
@@ -219,12 +219,8 @@ static SysBusDeviceInfo arm_sysctl_info = {
     .qdev.name  = "realview_sysctl",
     .qdev.size  = sizeof(arm_sysctl_state),
     .qdev.props = (Property[]) {
-        {
-            .name   = "sys_id",
-            .info   = &qdev_prop_uint32,
-            .offset = offsetof(arm_sysctl_state, sys_id),
-        },
-        {/* end of list */}
+        DEFINE_PROP_UINT32("sys_id", arm_sysctl_state, sys_id, 0),
+        DEFINE_PROP_END_OF_LIST(),
     }
 };