mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-07 03:35:20 +00:00
qdev/prop: convert syborg_fb.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:
parent
32a7ee989f
commit
c230c4e38f
@ -535,16 +535,9 @@ static SysBusDeviceInfo syborg_fb_info = {
|
|||||||
.qdev.name = "syborg,framebuffer",
|
.qdev.name = "syborg,framebuffer",
|
||||||
.qdev.size = sizeof(SyborgFBState),
|
.qdev.size = sizeof(SyborgFBState),
|
||||||
.qdev.props = (Property[]) {
|
.qdev.props = (Property[]) {
|
||||||
{
|
DEFINE_PROP_UINT32("width", SyborgFBState, cols, 0),
|
||||||
.name = "width",
|
DEFINE_PROP_UINT32("height", SyborgFBState, rows, 0),
|
||||||
.info = &qdev_prop_uint32,
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
.offset = offsetof(SyborgFBState, cols),
|
|
||||||
},{
|
|
||||||
.name = "height",
|
|
||||||
.info = &qdev_prop_uint32,
|
|
||||||
.offset = offsetof(SyborgFBState, rows),
|
|
||||||
},
|
|
||||||
{/* end of list */}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user