From 083301fc813c88b266e67ad7dad8635fe5fb1776 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 3 Aug 2009 17:35:42 +0200 Subject: qdev/prop: convert syborg_timer.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- hw/syborg_timer.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'hw/syborg_timer.c') diff --git a/hw/syborg_timer.c b/hw/syborg_timer.c index cf96c5fffe..f64b824e46 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(), } }; -- cgit v1.2.3