Archived
10
0
Fork 0

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:
This commit is contained in:
Gerd Hoffmann 2009-08-03 17:35:41 +02:00 committed by Anthony Liguori
parent 5cdabc1498
commit c4470b2577

View file

@ -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(),
}
};