From: Gerd Hoffmann Date: Mon, 3 Aug 2009 15:35:48 +0000 (+0200) Subject: qdev/prop: convert xilinx_timer.c to helper macros. X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1405^2~17^2~7371 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea2b7271bfb601bf5b57c03a7bc46482e6342b95;p=sdk%2Femulator%2Fqemu.git qdev/prop: convert xilinx_timer.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- diff --git a/hw/xilinx_timer.c b/hw/xilinx_timer.c index efb6a04fb5..196f0112ec 100644 --- a/hw/xilinx_timer.c +++ b/hw/xilinx_timer.c @@ -219,18 +219,9 @@ static SysBusDeviceInfo xilinx_timer_info = { .qdev.name = "xilinx,timer", .qdev.size = sizeof(struct timerblock), .qdev.props = (Property[]) { - { - .name = "frequency", - .info = &qdev_prop_uint32, - .offset = offsetof(struct timerblock, freq_hz), - .defval = (uint32_t[]) { 2 }, - },{ - .name = "nr-timers", - .info = &qdev_prop_uint32, - .offset = offsetof(struct timerblock, nr_timers), - .defval = (uint32_t[]) { 2 }, - }, - {/* end of list */} + DEFINE_PROP_UINT32("frequency", struct timerblock, freq_hz, 0), + DEFINE_PROP_UINT32("nr-timers", struct timerblock, nr_timers, 0), + DEFINE_PROP_END_OF_LIST(), } };