Patchwork [18/32] qdev/prop: convert sparc32_dma.c to helper macros.

login
register
mail settings
Submitter Gerd Hoffmann
Date Aug. 3, 2009, 3:35 p.m.
Message ID <1249313748-6459-19-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/30625/
State Superseded
Headers show

Comments

Gerd Hoffmann - Aug. 3, 2009, 3:35 p.m.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/sparc32_dma.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

Patch

diff --git a/hw/sparc32_dma.c b/hw/sparc32_dma.c
index 7633905..926fd32 100644
--- a/hw/sparc32_dma.c
+++ b/hw/sparc32_dma.c
@@ -286,12 +286,8 @@  static SysBusDeviceInfo sparc32_dma_info = {
     .qdev.name  = "sparc32_dma",
     .qdev.size  = sizeof(DMAState),
     .qdev.props = (Property[]) {
-        {
-            .name = "iommu_opaque",
-            .info = &qdev_prop_ptr,
-            .offset = offsetof(DMAState, iommu),
-        },
-        {/* end of property list */}
+        DEFINE_PROP_PTR("iommu_opaque", DMAState, iommu),
+        DEFINE_PROP_END_OF_LIST(),
     }
 };