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:
This commit is contained in:
Gerd Hoffmann 2009-08-03 17:35:42 +02:00 committed by Anthony Liguori
parent c4470b2577
commit 083301fc81

View File

@ -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(),
}
};