提交 01274424 编写于 作者: G Gerd Hoffmann 提交者: Anthony Liguori

qdev/prop: convert m48t59.c to helper macros.

Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
Message-Id: 
上级 668724a7
......@@ -668,22 +668,10 @@ static SysBusDeviceInfo m48t59_info = {
.qdev.name = "m48t59",
.qdev.size = sizeof(m48t59_t),
.qdev.props = (Property[]) {
{
.name = "size",
.info = &qdev_prop_uint32,
.offset = offsetof(m48t59_t, size),
.defval = (uint32_t[]) { -1 },
},{
.name = "type",
.info = &qdev_prop_uint32,
.offset = offsetof(m48t59_t, type),
.defval = (uint32_t[]) { -1 },
},{
.name = "io_base",
.info = &qdev_prop_hex32,
.offset = offsetof(m48t59_t, io_base),
},
{/* end of list */}
DEFINE_PROP_UINT32("size", m48t59_t, size, -1),
DEFINE_PROP_UINT32("type", m48t59_t, type, -1),
DEFINE_PROP_HEX32( "io_base", m48t59_t, io_base, 0),
DEFINE_PROP_END_OF_LIST(),
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册