diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-08-03 17:35:41 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-10 13:11:26 -0500 |
commit | c4470b25771ef1598971f781f09448522118dbdf (patch) | |
tree | 3b48b50de1715b508ed90d9d5cbce4f8c266b5c6 /hw/syborg_serial.c | |
parent | 5cdabc149812a6d483fbb3b4eb846ac22d3ec2bf (diff) | |
download | qemu-c4470b25771ef1598971f781f09448522118dbdf.zip qemu-c4470b25771ef1598971f781f09448522118dbdf.tar.gz qemu-c4470b25771ef1598971f781f09448522118dbdf.tar.bz2 |
qdev/prop: convert syborg_serial.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/syborg_serial.c')
-rw-r--r-- | hw/syborg_serial.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/hw/syborg_serial.c b/hw/syborg_serial.c index f693421..f1c6c7e 100644 --- a/hw/syborg_serial.c +++ b/hw/syborg_serial.c @@ -344,13 +344,8 @@ static SysBusDeviceInfo syborg_serial_info = { .qdev.name = "syborg,serial", .qdev.size = sizeof(SyborgSerialState), .qdev.props = (Property[]) { - { - .name = "fifo-size", - .info = &qdev_prop_uint32, - .offset = offsetof(SyborgSerialState, fifo_size), - .defval = (uint32_t[]) { 16 }, - }, - {/* end of list */} + DEFINE_PROP_UINT32("fifo-size", SyborgSerialState, fifo_size, 16), + DEFINE_PROP_END_OF_LIST(), } }; |