qemu-devel
[Top][All Lists]
Advanced

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

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


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

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

diff --git a/hw/syborg_timer.c b/hw/syborg_timer.c
index cf96c5f..f64b824 100644
--- a/hw/syborg_timer.c
+++ b/hw/syborg_timer.c
@@ -230,12 +230,8 @@ static SysBusDeviceInfo syborg_timer_info = {
     .qdev.name  = "syborg,timer",
     .qdev.size  = sizeof(SyborgTimerState),
     .qdev.props = (Property[]) {
-        {
-            .name   = "frequency",
-            .info   = &qdev_prop_uint32,
-            .offset = offsetof(SyborgTimerState, freq),
-        },
-        {/* end of list */}
+        DEFINE_PROP_UINT32("frequency",SyborgTimerState, freq, 0),
+        DEFINE_PROP_END_OF_LIST(),
     }
 };
 
-- 
1.6.2.5





reply via email to

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