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 | |
parent | 5cdabc149812a6d483fbb3b4eb846ac22d3ec2bf (diff) |
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:
-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 f69342154a..f1c6c7e536 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(), } }; |