From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ManoW-0001Ii-GT for qemu-devel@nongnu.org; Tue, 11 Aug 2009 05:38:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ManoS-0001Dr-Mf for qemu-devel@nongnu.org; Tue, 11 Aug 2009 05:38:40 -0400 Received: from [199.232.76.173] (port=33880 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ManoS-0001DY-5n for qemu-devel@nongnu.org; Tue, 11 Aug 2009 05:38:36 -0400 Received: from mx2.redhat.com ([66.187.237.31]:44710) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ManoR-0008Bn-Ki for qemu-devel@nongnu.org; Tue, 11 Aug 2009 05:38:35 -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 n7B9cZuT014652 for ; Tue, 11 Aug 2009 05:38:35 -0400 From: Gerd Hoffmann Date: Tue, 11 Aug 2009 11:38:30 +0200 Message-Id: <1249983510-2960-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH] qdev/prop: convert isa-bus 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/isa-bus.c | 15 +++------------ 1 files changed, 3 insertions(+), 12 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index 8c14b1d..315efbb 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -29,18 +29,9 @@ static struct BusInfo isa_bus_info = { .name = "ISA", .size = sizeof(ISABus), .props = (Property[]) { - { - .name = "iobase", - .info = &qdev_prop_hex32, - .offset = offsetof(ISADevice, iobase[0]), - .defval = (uint32_t[]) { -1 }, - },{ - .name = "iobase2", - .info = &qdev_prop_hex32, - .offset = offsetof(ISADevice, iobase[1]), - .defval = (uint32_t[]) { -1 }, - }, - {/* end of list */} + DEFINE_PROP_HEX32("iobase", ISADevice, iobase[0], -1), + DEFINE_PROP_HEX32("iobase2", ISADevice, iobase[1], -1), + DEFINE_PROP_END_OF_LIST(), } }; -- 1.6.2.5