qemu-devel
[Top][All Lists]
Advanced

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

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


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

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

diff --git a/hw/sun4u.c b/hw/sun4u.c
index 6f3f0c3..fc0c552 100644
--- a/hw/sun4u.c
+++ b/hw/sun4u.c
@@ -492,12 +492,8 @@ static SysBusDeviceInfo ram_info = {
     .qdev.name  = "memory",
     .qdev.size  = sizeof(RamDevice),
     .qdev.props = (Property[]) {
-        {
-            .name = "size",
-            .info = &qdev_prop_uint64,
-            .offset = offsetof(RamDevice, size),
-        },
-        {/* end of property list */}
+        DEFINE_PROP_UINT64("size", RamDevice, size, 0),
+        DEFINE_PROP_END_OF_LIST(),
     }
 };
 
-- 
1.6.2.5





reply via email to

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