aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:20 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:05:50 -0500
commite325775b35d918ac4f90b2cf6289fe29a91a2071 (patch)
treee70b88951ce3ec2f5c7923aa9c7afd6d5e4342bb /hw
parent54586bd17dcb56fecdf283fa5e47dfa6389132e6 (diff)
qdev/prop: convert arm_sysctl.c to helper macros.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
Diffstat (limited to 'hw')
-rw-r--r--hw/arm_sysctl.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/hw/arm_sysctl.c b/hw/arm_sysctl.c
index bb005c8015..11b3787b12 100644
--- a/hw/arm_sysctl.c
+++ b/hw/arm_sysctl.c
@@ -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(),
}
};