From: Gerd Hoffmann Date: Mon, 3 Aug 2009 15:35:27 +0000 (+0200) Subject: qdev/prop: convert iommu.c to helper macros. X-Git-Tag: TizenStudio_2.0_p2.3~7971 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d694e4728aacec5326c4a63de75cefb8acec5522;p=sdk%2Femulator%2Fqemu.git qdev/prop: convert iommu.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- diff --git a/hw/iommu.c b/hw/iommu.c index 585be8d..52385f7 100644 --- a/hw/iommu.c +++ b/hw/iommu.c @@ -386,12 +386,8 @@ static SysBusDeviceInfo iommu_info = { .qdev.name = "iommu", .qdev.size = sizeof(IOMMUState), .qdev.props = (Property[]) { - { - .name = "version", - .info = &qdev_prop_hex32, - .offset = offsetof(IOMMUState, version), - }, - {/* end of property list */} + DEFINE_PROP_HEX32("version", IOMMUState, version, 0), + DEFINE_PROP_END_OF_LIST(), } };