aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:40 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:11:26 -0500
commit5cdabc149812a6d483fbb3b4eb846ac22d3ec2bf (patch)
treed04b23e45a90aa26b6cf559fe63462c6e1337e98 /hw
parent51dd59272bf3c99f2d41a6ac36a2e3a93c552a42 (diff)
downloadqemu-5cdabc149812a6d483fbb3b4eb846ac22d3ec2bf.zip
qemu-5cdabc149812a6d483fbb3b4eb846ac22d3ec2bf.tar.gz
qemu-5cdabc149812a6d483fbb3b4eb846ac22d3ec2bf.tar.bz2
qdev/prop: convert syborg_pointer.c to helper macros.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
Diffstat (limited to 'hw')
-rw-r--r--hw/syborg_pointer.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/hw/syborg_pointer.c b/hw/syborg_pointer.c
index edd1f22..152602a 100644
--- a/hw/syborg_pointer.c
+++ b/hw/syborg_pointer.c
@@ -227,18 +227,9 @@ static SysBusDeviceInfo syborg_pointer_info = {
.qdev.name = "syborg,pointer",
.qdev.size = sizeof(SyborgPointerState),
.qdev.props = (Property[]) {
- {
- .name = "fifo-size",
- .info = &qdev_prop_uint32,
- .offset = offsetof(SyborgPointerState, fifo_size),
- .defval = (uint32_t[]) { 16 },
- },{
- .name = "absolute",
- .info = &qdev_prop_uint32,
- .offset = offsetof(SyborgPointerState, absolute),
- .defval = (uint32_t[]) { 1 },
- },
- {/* end of list */}
+ DEFINE_PROP_UINT32("fifo-size", SyborgPointerState, fifo_size, 16),
+ DEFINE_PROP_UINT32("absolute", SyborgPointerState, absolute, 1),
+ DEFINE_PROP_END_OF_LIST(),
}
};