Received: from eggs.gnu.org ([2001:4830:134:3::10]:45180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfALE-0003QP-57 for qemu-devel@nongnu.org; Fri, 17 Oct 2014 12:25:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XfAL9-0004dA-9F for qemu-devel@nongnu.org; Fri, 17 Oct 2014 12:25:24 -0400 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:49748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfAL9-0004d3-3M for qemu-devel@nongnu.org; Fri, 17 Oct 2014 12:25:19 -0400 Received: by mail-wi0-f170.google.com with SMTP id hi2so4189269wib.3 for ; Fri, 17 Oct 2014 09:25:18 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 17 Oct 2014 18:24:52 +0200 Message-Id: <1413563095-27301-11-git-send-email-pbonzini@redhat.com> In-Reply-To: <1413563095-27301-1-git-send-email-pbonzini@redhat.com> References: <1413563095-27301-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH qom v4 10/13] qdev: gpio: delete NamedGPIOList::out List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Crosthwaite , afaerber@suse.de, agraf@suse.de From: Peter Crosthwaite All users of GPIO outputs are fully QOMified, using QOM properties to access the GPIO data. Delete. Reviewed-by: Alexander Graf Signed-off-by: Peter Crosthwaite Signed-off-by: Paolo Bonzini --- hw/core/qdev.c | 1 - include/hw/qdev-core.h | 1 - 2 files changed, 2 deletions(-) diff --git a/hw/core/qdev.c b/hw/core/qdev.c index 2a88768..8550486 100644 --- a/hw/core/qdev.c +++ b/hw/core/qdev.c @@ -369,7 +369,6 @@ void qdev_init_gpio_out_named(DeviceState *dev, qemu_irq *pins, assert(gpio_list->num_in == 0 || !name); assert(gpio_list->num_out == 0); gpio_list->num_out = n; - gpio_list->out = pins; for (i = 0; i < n; ++i) { memset(&pins[i], 0, sizeof(*pins)); diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h index 31301e5..eac603b 100644 --- a/include/hw/qdev-core.h +++ b/include/hw/qdev-core.h @@ -137,7 +137,6 @@ struct NamedGPIOList { char *name; qemu_irq *in; int num_in; - qemu_irq *out; int num_out; QLIST_ENTRY(NamedGPIOList) node; }; -- 2.1.0