From c4470b25771ef1598971f781f09448522118dbdf Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 3 Aug 2009 17:35:41 +0200 Subject: [PATCH] qdev/prop: convert syborg_serial.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- hw/syborg_serial.c | 9 ++------- 1 file 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(), } }; -- 2.7.4