qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 25/32] qdev/prop: convert syborg_serial.c to helper


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

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

diff --git a/hw/syborg_serial.c b/hw/syborg_serial.c
index f693421..f1c6c7e 100644
--- a/hw/syborg_serial.c
+++ b/hw/syborg_serial.c
@@ -344,13 +344,8 @@ static SysBusDeviceInfo syborg_serial_info = {
     .qdev.name  = "syborg,serial",
     .qdev.size  = sizeof(SyborgSerialState),
     .qdev.props = (Property[]) {
-        {
-            .name   = "fifo-size",
-            .info   = &qdev_prop_uint32,
-            .offset = offsetof(SyborgSerialState, fifo_size),
-            .defval = (uint32_t[]) { 16 },
-        },
-        {/* end of list */}
+        DEFINE_PROP_UINT32("fifo-size", SyborgSerialState, fifo_size, 16),
+        DEFINE_PROP_END_OF_LIST(),
     }
 };
 
-- 
1.6.2.5





reply via email to

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