From: Gerd Hoffmann Date: Mon, 3 Aug 2009 15:35:20 +0000 (+0200) Subject: qdev/prop: convert arm_sysctl.c to helper macros. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e325775b35d918ac4f90b2cf6289fe29a91a2071;p=qemu.git qdev/prop: convert arm_sysctl.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- 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(), } };