mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-10-19 17:32:55 +00:00
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:
parent
c4470b2577
commit
083301fc81
|
@ -230,12 +230,8 @@ static SysBusDeviceInfo syborg_timer_info = {
|
||||||
.qdev.name = "syborg,timer",
|
.qdev.name = "syborg,timer",
|
||||||
.qdev.size = sizeof(SyborgTimerState),
|
.qdev.size = sizeof(SyborgTimerState),
|
||||||
.qdev.props = (Property[]) {
|
.qdev.props = (Property[]) {
|
||||||
{
|
DEFINE_PROP_UINT32("frequency",SyborgTimerState, freq, 0),
|
||||||
.name = "frequency",
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
.info = &qdev_prop_uint32,
|
|
||||||
.offset = offsetof(SyborgTimerState, freq),
|
|
||||||
},
|
|
||||||
{/* end of list */}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue