diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-08-03 17:35:37 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-10 13:11:25 -0500 |
commit | c230c4e38ffc216918e5dc107595abe9c1e02488 (patch) | |
tree | 75564cf68c9040c7ff9a40bdabe7b0875dbff635 | |
parent | 32a7ee989f2477067522fb2cef547b3af5ba9838 (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:
-rw-r--r-- | hw/syborg_fb.c | 13 |
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(), } }; |