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-Tag: v0.12.0-rc0~1582 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=083301fc813c88b266e67ad7dad8635fe5fb1776;p=thirdparty%2Fqemu.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 cf96c5fffe3..f64b824e464 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(), } };