qdev/prop: convert syborg_interrupt.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
c230c4e38f
commit
3c2aed8b27
@ -222,13 +222,8 @@ static SysBusDeviceInfo syborg_int_info = {
|
||||
.qdev.name = "syborg,interrupt",
|
||||
.qdev.size = sizeof(SyborgIntState),
|
||||
.qdev.props = (Property[]) {
|
||||
{
|
||||
.name = "num-interrupts",
|
||||
.info = &qdev_prop_uint32,
|
||||
.offset = offsetof(SyborgIntState, num_irqs),
|
||||
.defval = (uint32_t[]) { 64 },
|
||||
},
|
||||
{/* end of list */}
|
||||
DEFINE_PROP_UINT32("num-interrupts", SyborgIntState, num_irqs, 64),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user