From: Gerd Hoffmann Date: Mon, 3 Aug 2009 15:35:27 +0000 (+0200) Subject: qdev/prop: convert iommu.c to helper macros. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=668724a78419ce319d5b255ec8cb85a3e9f8594d;p=qemu.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 585be8d3d8..52385f7fd1 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(), } };