diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-08-03 17:35:31 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-10 13:08:38 -0500 |
commit | 7fdaf611a50b437e2d8dc07bfe9372a595dedcf9 (patch) | |
tree | 6fd2cc66768012b9a16f77aeb0862f4a0cfd8ab9 /hw | |
parent | 186507b4466c70fdd8df7d14b425b5e0821c0960 (diff) | |
download | qemu-7fdaf611a50b437e2d8dc07bfe9372a595dedcf9.zip qemu-7fdaf611a50b437e2d8dc07bfe9372a595dedcf9.tar.gz qemu-7fdaf611a50b437e2d8dc07bfe9372a595dedcf9.tar.bz2 |
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:
Diffstat (limited to 'hw')
-rw-r--r-- | hw/slavio_intctl.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/hw/slavio_intctl.c b/hw/slavio_intctl.c index a56feb6..dbea1f9 100644 --- a/hw/slavio_intctl.c +++ b/hw/slavio_intctl.c @@ -425,12 +425,8 @@ static SysBusDeviceInfo slavio_intctl_info = { .qdev.name = "slavio_intctl", .qdev.size = sizeof(SLAVIO_INTCTLState), .qdev.props = (Property[]) { - { - .name = "cputimer_bit", - .info = &qdev_prop_uint32, - .offset = offsetof(SLAVIO_INTCTLState, cputimer_bit), - }, - {/* end of property list */} + DEFINE_PROP_UINT32("cputimer_bit", SLAVIO_INTCTLState, cputimer_bit, 0), + DEFINE_PROP_END_OF_LIST(), } }; |