aboutsummaryrefslogtreecommitdiff
path: root/hw/syborg_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/syborg_serial.c')
-rw-r--r--hw/syborg_serial.c9
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(),
}
};