From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXzaF-0002aM-JW for qemu-devel@nongnu.org; Mon, 03 Aug 2009 11:36:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXza5-0002IX-9g for qemu-devel@nongnu.org; Mon, 03 Aug 2009 11:36:13 -0400 Received: from [199.232.76.173] (port=39466 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXza4-0002Gb-GD for qemu-devel@nongnu.org; Mon, 03 Aug 2009 11:36:08 -0400 Received: from mx2.redhat.com ([66.187.237.31]:42802) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXza3-0004hG-73 for qemu-devel@nongnu.org; Mon, 03 Aug 2009 11:36:07 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n73Fa6RO001602 for ; Mon, 3 Aug 2009 11:36:06 -0400 From: Gerd Hoffmann Date: Mon, 3 Aug 2009 17:35:40 +0200 Message-Id: <1249313748-6459-25-git-send-email-kraxel@redhat.com> In-Reply-To: <1249313748-6459-1-git-send-email-kraxel@redhat.com> References: <1249313748-6459-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 24/32] qdev/prop: convert syborg_pointer.c to helper macros. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- hw/syborg_pointer.c | 15 +++------------ 1 files changed, 3 insertions(+), 12 deletions(-) diff --git a/hw/syborg_pointer.c b/hw/syborg_pointer.c index edd1f22..152602a 100644 --- a/hw/syborg_pointer.c +++ b/hw/syborg_pointer.c @@ -227,18 +227,9 @@ static SysBusDeviceInfo syborg_pointer_info = { .qdev.name = "syborg,pointer", .qdev.size = sizeof(SyborgPointerState), .qdev.props = (Property[]) { - { - .name = "fifo-size", - .info = &qdev_prop_uint32, - .offset = offsetof(SyborgPointerState, fifo_size), - .defval = (uint32_t[]) { 16 }, - },{ - .name = "absolute", - .info = &qdev_prop_uint32, - .offset = offsetof(SyborgPointerState, absolute), - .defval = (uint32_t[]) { 1 }, - }, - {/* end of list */} + DEFINE_PROP_UINT32("fifo-size", SyborgPointerState, fifo_size, 16), + DEFINE_PROP_UINT32("absolute", SyborgPointerState, absolute, 1), + DEFINE_PROP_END_OF_LIST(), } }; -- 1.6.2.5