qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 668724a] qdev/prop: convert iommu.c to helper mac


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 668724a] qdev/prop: convert iommu.c to helper macros.
Date: Mon, 10 Aug 2009 21:48:50 -0000

From: Gerd Hoffmann <address@hidden>

Signed-off-by: Gerd Hoffmann <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
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(),
     }
 };
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]