qdev/prop: convert slavio_intctl.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id: 
Message-Id:
This commit is contained in:
Gerd Hoffmann 2009-08-03 17:35:31 +02:00 committed by Anthony Liguori
parent 186507b446
commit 7fdaf611a5

View File

@ -425,12 +425,8 @@ static SysBusDeviceInfo slavio_intctl_info = {
.qdev.name = "slavio_intctl", .qdev.name = "slavio_intctl",
.qdev.size = sizeof(SLAVIO_INTCTLState), .qdev.size = sizeof(SLAVIO_INTCTLState),
.qdev.props = (Property[]) { .qdev.props = (Property[]) {
{ DEFINE_PROP_UINT32("cputimer_bit", SLAVIO_INTCTLState, cputimer_bit, 0),
.name = "cputimer_bit", DEFINE_PROP_END_OF_LIST(),
.info = &qdev_prop_uint32,
.offset = offsetof(SLAVIO_INTCTLState, cputimer_bit),
},
{/* end of property list */}
} }
}; };