From: Gerd Hoffmann Date: Mon, 3 Aug 2009 15:35:37 +0000 (+0200) Subject: qdev/prop: convert syborg_fb.c to helper macros. X-Git-Tag: qemu-xen-4.2.0~6136 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c230c4e38ffc216918e5dc107595abe9c1e02488;p=qemu-xen.git qdev/prop: convert syborg_fb.c to helper macros. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- 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(), } };