aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 17:35:37 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:11:25 -0500
commitc230c4e38ffc216918e5dc107595abe9c1e02488 (patch)
tree75564cf68c9040c7ff9a40bdabe7b0875dbff635 /hw
parent32a7ee989f2477067522fb2cef547b3af5ba9838 (diff)
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:
Diffstat (limited to 'hw')
-rw-r--r--hw/syborg_fb.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/hw/syborg_fb.c b/hw/syborg_fb.c
index 2929ffd0b5..efa5c0e3f9 100644
--- a/hw/syborg_fb.c
+++ b/hw/syborg_fb.c
@@ -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(),
}
};