From: Gerd Hoffmann Date: Mon, 3 Aug 2009 15:35:26 +0000 (+0200) Subject: qdev/prop: convert integratorcp.c to helper macros. X-Git-Tag: v0.12.0-rc0~1597 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb36f66a97930cbbab8b483dddf82218b590f195;p=thirdparty%2Fqemu.git qdev/prop: convert integratorcp.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- diff --git a/hw/integratorcp.c b/hw/integratorcp.c index ddc8d8556f2..2d83004d030 100644 --- a/hw/integratorcp.c +++ b/hw/integratorcp.c @@ -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(), } };