From patchwork Fri Oct 17 16:24:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 400581 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 9816C1400DD for ; Sat, 18 Oct 2014 03:33:34 +1100 (AEDT) Received: from localhost ([::1]:33482 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfAT6-0008AC-Ld for incoming@patchwork.ozlabs.org; Fri, 17 Oct 2014 12:33:32 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=ugoPi1KxIR9q5BKG/amwUqRk2SGvyHSCyNYc37wtJ3o=; b=UlOQ0vqxL4L//vYulEn0DkgurpeYzfD0XRyxFN23FJ/GWDGg/fGlvMc0vfuYI4OQEQ UK8GRR8uRtvlwLH7zs/83f7rpaB1ibSERwgNPQ/tGqw51hgNazVcOXKNABQWS4INbH03 KcYhU+g7UEvGvYs+vj0a6jU/o+joxfBp8hAvBeY01nnR5XSnfgKBsZEzZmmxPjfHVWh+ QdRUmCfkTiOBWoY9eGQpG6Gvmc38j6tSZKWqg4FilsxzCEYVKPs1x7MK/G91mHryt41S OvJuYVLPuw5MEJeDFTtv97PYOfaZtQNLANXjUSVlavYjctqHX6F31ZEDP67O/31Jw9G+ gKCQ== X-Received: by 10.194.249.34 with SMTP id yr2mr8182652wjc.9.1413563118345; Fri, 17 Oct 2014 09:25:18 -0700 (PDT) Received: from yakj.usersys.redhat.com.com ([62.156.150.204]) by mx.google.com with ESMTPSA id h4sm2230141wjb.9.2014.10.17.09.25.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Oct 2014 09:25:17 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Fri, 17 Oct 2014 18:24:52 +0200 Message-Id: <1413563095-27301-11-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1413563095-27301-1-git-send-email-pbonzini@redhat.com> References: <1413563095-27301-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22a Cc: Peter Crosthwaite , afaerber@suse.de, agraf@suse.de Subject: [Qemu-devel] [PATCH qom v4 10/13] qdev: gpio: delete NamedGPIOList::out X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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; };