From: Gerd Hoffmann Date: Mon, 3 Aug 2009 15:35:35 +0000 (+0200) Subject: qdev/prop: convert sun4m.c to helper macros. X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~11021 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c885159a7ad2b2af35f5cf9aaa6966a013824388;p=sdk%2Femulator%2Fqemu.git qdev/prop: convert sun4m.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- diff --git a/hw/sun4m.c b/hw/sun4m.c index abadfd6..ddc295a 100644 --- a/hw/sun4m.c +++ b/hw/sun4m.c @@ -695,12 +695,8 @@ static SysBusDeviceInfo ram_info = { .qdev.name = "memory", .qdev.size = sizeof(RamDevice), .qdev.props = (Property[]) { - { - .name = "size", - .info = &qdev_prop_uint64, - .offset = offsetof(RamDevice, size), - }, - {/* end of property list */} + DEFINE_PROP_UINT64("size", RamDevice, size, 0), + DEFINE_PROP_END_OF_LIST(), } };