qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [COMMIT d210a1b] qdev/prop: convert eccmemctl.c to helper


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT d210a1b] qdev/prop: convert eccmemctl.c to helper macros.
Date: Mon, 10 Aug 2009 21:48:49 -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/eccmemctl.c b/hw/eccmemctl.c
index 2c6e4c6..a19a112 100644
--- a/hw/eccmemctl.c
+++ b/hw/eccmemctl.c
@@ -340,13 +340,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(),
     }
 };
 




reply via email to

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