From nobody Fri Dec 19 04:26:49 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1556558882; cv=none; d=zoho.com; s=zohoarc; b=XvmeQHbJa3klTq6wcqYq7x4Vugas1/D4nkn7heC6pQvKOUsDQhtMr3FQed0/boumeTlzV44lmPzMfBi5U+Fe53MmeQ09fJvsXLOw9TsWeakY9z+09CVXqPPD6E3ipeQ0vDiFqWmSRLVtj1mWhotkMKg27m6ITQLmIsPfPNuM2pA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556558882; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=Kg2YYRuF9GcEYqzRNytFiB3KVAriQjQeVWin+mjaTaQ=; b=h/YYqtB1f2HDlftWmkcWhD+USiEiJTjrZmM/vt9/m0p846Sv1HYPGymTh+8I7PwBOlYROG9qyr44+gbHFYGsqqYi+TfAss02GQZHrDLGokop+09XU3HmWmT12eWOy+H1a5XSCXMxc4OSb5pBzScZPkhzRTcJ9Gq6bQY9DeEN3qM= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1556558881989743.7866019537938; Mon, 29 Apr 2019 10:28:01 -0700 (PDT) Received: from localhost ([127.0.0.1]:60982 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLA4L-0002GG-Es for importer@patchew.org; Mon, 29 Apr 2019 13:27:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hL9fM-0005Om-BP for qemu-devel@nongnu.org; Mon, 29 Apr 2019 13:02:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hL9fH-0006zA-2a for qemu-devel@nongnu.org; Mon, 29 Apr 2019 13:02:06 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:40394) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hL9fD-0006bs-T7 for qemu-devel@nongnu.org; Mon, 29 Apr 2019 13:02:01 -0400 Received: by mail-wm1-x32b.google.com with SMTP id h11so155332wmb.5 for ; Mon, 29 Apr 2019 10:01:16 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id a13sm36896wmj.39.2019.04.29.10.01.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Apr 2019 10:01:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=Kg2YYRuF9GcEYqzRNytFiB3KVAriQjQeVWin+mjaTaQ=; b=wi2nUQqhBBF7Z+/CwXHm3bcU+DnFRqapzYPNlhGB5jZZxHEM2ibbWhUlHnrDTjQH1l 8AijtCx4HSZFLvxo1OiVNHiQWd61EHV0Pb0MG9tbYwtJROArzguFzyxWzK5PwgqxTneb T0QvCm/6bvGqVQTOXvo26yqjd46ayG89y4gBpEX5iLi6jfUtw+JjsMA/ljt4zc3/difs NURRfGM0onxUCim55fC92gAfk0vTXcxWs45Ff58u/HZpfsyiXaytdmOIViBpcnKkw3s1 kh9cIA69hpnhNpoMiujZsLC6iNa6/3yhTnY0bv3orNomcyCPvecRMKrPnygLtbOlzZTE mZKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Kg2YYRuF9GcEYqzRNytFiB3KVAriQjQeVWin+mjaTaQ=; b=WPu8ilGk7RMeBX+TvFEhc9OfS6m860THFtm10LrcKtVdiqZpDf3c1NfLLMiGBNS6oT l+4bm/RkMmcXTK1b2Hs+xyhJyHdpSbjt8q3m+mF079P1EFDWER2ymPX03596Vy5Usw94 lT3XLME5rI7HRqizBwNDgTt7Dx77cbWJT5IDfsNbB2TV7BzNTFrPnIrsYOlyrcyUICkv rA7uwGhxcvua9eztnoLwD6oWA6ZZiMaL3WWZkSR0a3baVaMlG3dRrwh2xauLVX3rcvro UWIXUb0pGI3Hm51TN12Yh/lECr5PxVIfuEs8VvQCi8VlSQrVtOFctFaFq2kAyEaQoIGY kfSA== X-Gm-Message-State: APjAAAUoZiJdPFrrqekb89qu9aE9My4Jgeltdpj7kL9VNT1k2jL/VG0R P9WK7oWDTjUck29mIfi1dzjLgRUKrrI= X-Google-Smtp-Source: APXvYqzffY3KLG9vGZcE77iWCJ8vEX8xQw345mc/cPwgncWfQSrypSIc/49fgr6BMAxfVLmKEDGHhQ== X-Received: by 2002:a1c:7512:: with SMTP id o18mr58806wmc.68.1556557274988; Mon, 29 Apr 2019 10:01:14 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Date: Mon, 29 Apr 2019 18:00:21 +0100 Message-Id: <20190429170030.11323-34-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190429170030.11323-1-peter.maydell@linaro.org> References: <20190429170030.11323-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32b Subject: [Qemu-devel] [PULL 33/42] hw/display/tc6393xb: Remove unused functions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Philippe Mathieu-Daud=C3=A9 No code used the tc6393xb_gpio_in_get() and tc6393xb_gpio_out_set() functions since their introduction in commit 88d2c950b002. Time to remove them. Suggested-by: Markus Armbruster Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-id: 20190412165416.7977-4-philmd@redhat.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- include/hw/devices.h | 3 --- hw/display/tc6393xb.c | 16 ---------------- 2 files changed, 19 deletions(-) diff --git a/include/hw/devices.h b/include/hw/devices.h index 1ed5be32967..0850f697451 100644 --- a/include/hw/devices.h +++ b/include/hw/devices.h @@ -54,9 +54,6 @@ void retu_key_event(void *retu, int state); typedef struct TC6393xbState TC6393xbState; TC6393xbState *tc6393xb_init(struct MemoryRegion *sysmem, uint32_t base, qemu_irq irq); -void tc6393xb_gpio_out_set(TC6393xbState *s, int line, - qemu_irq handler); -qemu_irq *tc6393xb_gpio_in_get(TC6393xbState *s); qemu_irq tc6393xb_l3v_get(TC6393xbState *s); =20 #endif diff --git a/hw/display/tc6393xb.c b/hw/display/tc6393xb.c index e1b1e302f23..6d133d9a66c 100644 --- a/hw/display/tc6393xb.c +++ b/hw/display/tc6393xb.c @@ -137,11 +137,6 @@ struct TC6393xbState { blanked : 1; }; =20 -qemu_irq *tc6393xb_gpio_in_get(TC6393xbState *s) -{ - return s->gpio_in; -} - static void tc6393xb_gpio_set(void *opaque, int line, int level) { // TC6393xbState *s =3D opaque; @@ -154,17 +149,6 @@ static void tc6393xb_gpio_set(void *opaque, int line, = int level) // FIXME: how does the chip reflect the GPIO input level change? } =20 -void tc6393xb_gpio_out_set(TC6393xbState *s, int line, - qemu_irq handler) -{ - if (line >=3D TC6393XB_GPIOS) { - fprintf(stderr, "TC6393xb: no GPIO pin %d\n", line); - return; - } - - s->handler[line] =3D handler; -} - static void tc6393xb_gpio_handler_update(TC6393xbState *s) { uint32_t level, diff; --=20 2.20.1