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

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

Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
Message-Id: 
上级 51dd5927
......@@ -227,18 +227,9 @@ static SysBusDeviceInfo syborg_pointer_info = {
.qdev.name = "syborg,pointer",
.qdev.size = sizeof(SyborgPointerState),
.qdev.props = (Property[]) {
{
.name = "fifo-size",
.info = &qdev_prop_uint32,
.offset = offsetof(SyborgPointerState, fifo_size),
.defval = (uint32_t[]) { 16 },
},{
.name = "absolute",
.info = &qdev_prop_uint32,
.offset = offsetof(SyborgPointerState, absolute),
.defval = (uint32_t[]) { 1 },
},
{/* end of list */}
DEFINE_PROP_UINT32("fifo-size", SyborgPointerState, fifo_size, 16),
DEFINE_PROP_UINT32("absolute", SyborgPointerState, absolute, 1),
DEFINE_PROP_END_OF_LIST(),
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册