From: Gerd Hoffmann Date: Mon, 3 Aug 2009 15:35:21 +0000 (+0200) Subject: qdev/prop: convert armv7m.c to helper macros. X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~11034 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1832efa29d07cfa35fcd796df1f8ccefb694a59d;p=sdk%2Femulator%2Fqemu.git qdev/prop: convert armv7m.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- diff --git a/hw/armv7m.c b/hw/armv7m.c index 2e66d7e..2e4f0ed 100644 --- a/hw/armv7m.c +++ b/hw/armv7m.c @@ -242,12 +242,8 @@ static SysBusDeviceInfo bitband_info = { .qdev.name = "ARM,bitband-memory", .qdev.size = sizeof(BitBandState), .qdev.props = (Property[]) { - { - .name = "base", - .info = &qdev_prop_hex32, - .offset = offsetof(BitBandState, base), - }, - {/* end of list */} + DEFINE_PROP_UINT32("base", BitBandState, base, 0), + DEFINE_PROP_END_OF_LIST(), } };