From: Gerd Hoffmann Date: Mon, 3 Aug 2009 15:35:42 +0000 (+0200) Subject: qdev/prop: convert syborg_timer.c to helper macros. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=083301fc813c88b266e67ad7dad8635fe5fb1776;p=qemu.git qdev/prop: convert syborg_timer.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- 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(), } };