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:
master
Gerd Hoffmann 2009-08-03 17:35:38 +02:00 committed by Anthony Liguori
parent c230c4e38f
commit 3c2aed8b27
1 changed files with 2 additions and 7 deletions

View File

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