qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 10/32] qdev/prop: convert integratorcp.c to helper m


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

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

diff --git a/hw/integratorcp.c b/hw/integratorcp.c
index ddc8d85..2d83004 100644
--- a/hw/integratorcp.c
+++ b/hw/integratorcp.c
@@ -526,12 +526,8 @@ static SysBusDeviceInfo core_info = {
     .qdev.name  = "integrator_core",
     .qdev.size  = sizeof(integratorcm_state),
     .qdev.props = (Property[]) {
-        {
-            .name   = "memsz",
-            .info   = &qdev_prop_uint32,
-            .offset = offsetof(integratorcm_state, memsz),
-        },
-        {/* end of list */}
+        DEFINE_PROP_UINT32("memsz", integratorcm_state, memsz, 0),
+        DEFINE_PROP_END_OF_LIST(),
     }
 };
 
-- 
1.6.2.5





reply via email to

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