qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 06/32] qdev/prop: convert eccmemctl.c to helper macr


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

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

diff --git a/hw/eccmemctl.c b/hw/eccmemctl.c
index dca397d..3f38477 100644
--- a/hw/eccmemctl.c
+++ b/hw/eccmemctl.c
@@ -356,13 +356,8 @@ static SysBusDeviceInfo ecc_info = {
     .qdev.name  = "eccmemctl",
     .qdev.size  = sizeof(ECCState),
     .qdev.props = (Property[]) {
-        {
-            .name   = "version",
-            .info   = &qdev_prop_hex32,
-            .offset = offsetof(ECCState, version),
-            .defval = (uint32_t[]) { -1 },
-        },
-        {/* end of list */}
+        DEFINE_PROP_HEX32("version", ECCState, version, -1),
+        DEFINE_PROP_END_OF_LIST(),
     }
 };
 
-- 
1.6.2.5





reply via email to

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