diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-08-03 17:35:20 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-10 13:05:50 -0500 |
commit | e325775b35d918ac4f90b2cf6289fe29a91a2071 (patch) | |
tree | e70b88951ce3ec2f5c7923aa9c7afd6d5e4342bb /hw/arm_sysctl.c | |
parent | 54586bd17dcb56fecdf283fa5e47dfa6389132e6 (diff) | |
download | qemu-e325775b35d918ac4f90b2cf6289fe29a91a2071.tar.gz qemu-e325775b35d918ac4f90b2cf6289fe29a91a2071.tar.bz2 qemu-e325775b35d918ac4f90b2cf6289fe29a91a2071.zip |
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/arm_sysctl.c')
-rw-r--r-- | hw/arm_sysctl.c | 8 |
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(), } }; |