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.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(),
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user