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

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

Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
Message-Id: 
上级 32a7ee98
......@@ -535,16 +535,9 @@ static SysBusDeviceInfo syborg_fb_info = {
.qdev.name = "syborg,framebuffer",
.qdev.size = sizeof(SyborgFBState),
.qdev.props = (Property[]) {
{
.name = "width",
.info = &qdev_prop_uint32,
.offset = offsetof(SyborgFBState, cols),
},{
.name = "height",
.info = &qdev_prop_uint32,
.offset = offsetof(SyborgFBState, rows),
},
{/* end of list */}
DEFINE_PROP_UINT32("width", SyborgFBState, cols, 0),
DEFINE_PROP_UINT32("height", SyborgFBState, rows, 0),
DEFINE_PROP_END_OF_LIST(),
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册