aboutsummaryrefslogtreecommitdiff
path: root/hw/syborg_timer.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:42 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:11:26 -0500
commit083301fc813c88b266e67ad7dad8635fe5fb1776 (patch)
tree3f339d9761db29583c40ffb68cd7836560227a42 /hw/syborg_timer.c
parentc4470b25771ef1598971f781f09448522118dbdf (diff)
qdev/prop: convert syborg_timer.c to helper macros.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
Diffstat (limited to 'hw/syborg_timer.c')
-rw-r--r--hw/syborg_timer.c8
1 files changed, 2 insertions, 6 deletions
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(),
}
};