qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 13/32] qdev/prop: convert pcnet.c to helper macros.


From: Gerd Hoffmann
Subject: [Qemu-devel] [PATCH 13/32] qdev/prop: convert pcnet.c to helper macros.
Date: Mon, 3 Aug 2009 17:35:29 +0200

Signed-off-by: Gerd Hoffmann <address@hidden>
---
 hw/pcnet.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/hw/pcnet.c b/hw/pcnet.c
index 22ab6be..637dcfb 100644
--- a/hw/pcnet.c
+++ b/hw/pcnet.c
@@ -2145,12 +2145,8 @@ static SysBusDeviceInfo lance_info = {
     .qdev.name  = "lance",
     .qdev.size  = sizeof(SysBusPCNetState),
     .qdev.props = (Property[]) {
-        {
-            .name   = "dma",
-            .info   = &qdev_prop_ptr,
-            .offset = offsetof(SysBusPCNetState, state.dma_opaque),
-        },
-        {/* end of list */}
+        DEFINE_PROP_PTR("dma", SysBusPCNetState, state.dma_opaque),
+        DEFINE_PROP_END_OF_LIST(),
     }
 };
 
-- 
1.6.2.5





reply via email to

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