From patchwork Tue Feb 16 15:40:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102771 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1737863lbl; Tue, 16 Feb 2016 07:41:52 -0800 (PST) X-Received: by 10.66.237.38 with SMTP id uz6mr31876816pac.136.1455637312275; Tue, 16 Feb 2016 07:41:52 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o88si51911500pfa.166.2016.02.16.07.41.51; Tue, 16 Feb 2016 07:41:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932117AbcBPPlv (ORCPT + 4 others); Tue, 16 Feb 2016 10:41:51 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:62246 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932067AbcBPPlu (ORCPT ); Tue, 16 Feb 2016 10:41:50 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue003) with ESMTPA (Nemesis) id 0MCucZ-1adi5s0jxb-009gKj; Tue, 16 Feb 2016 16:41:27 +0100 From: Arnd Bergmann To: Linus Walleij Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Russell King , Bjorn Helgaas , Alexandre Courbot , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Lars-Peter Clausen , Ralf Baechle , linux-mips@linux-mips.org Subject: [PATCH v2 3/5] gpio: ks8695: remove irq_to_gpio function Date: Tue, 16 Feb 2016 16:40:36 +0100 Message-Id: <1455637261-2920972-3-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1455637261-2920972-1-git-send-email-arnd@arndb.de> References: <455637086-2794174-1-git-send-email-arnd@arndb.de> <1455637261-2920972-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:RHyJA5NbnimJeXzJNmLJgrFVR60PmG362MbQhRaRPn/nu/fG3MX KHpQScypIVaZ28e7W/JHnnk5W5DOZE7gZEB8mYOC74D1i4DDk+pYkWurDKbur8ADq8gJHGK 72v1GZdttf12WglQpFIES66f88OSeDnTQk3YquP0ktqNMqxq0jIqKSnCk/nVE5IHUn1M4eK p/eIUBg2Gwb0f0MXh72Yw== X-UI-Out-Filterresults: notjunk:1; V01:K0:0h6encW2r6U=:V1DNevHH5svF0bIqNxdFlH EXNEjB2tFiAzyIN/OuEuZpPnDfJX4iBDLzJiGvPwLKpt+j2AiMWmN/ohLefYFpyjwhoQbRaav 043N1XMNBwPO2IuOjnDx0r2J91XiGrHjc2q16t4yl6LhUrOgBd7omqFT4Fg/fu8fVBow7w+oO uxCT9OPAuTZun2QxjD86HDXmb+yaIJUTePwysmPM3p6KIVv30EItiJDD62O7Ojz4vNrLWi0lf dCyPx5o/xHJ0zplgbT6SCNI/O07/8MkeiKBAk/W54h6n/HM3q0KcY285QLV5ykfZ/2km1oPBr ON/6DnUnB1NEB3i5VwzuxQn+mDD2rqoqtP+FNMIGKrl5qMcZ7t08ZDS662q4GXYubQwGXdrL8 nQs1zB5LGYKKnf56BFQGwPMDAoXPNDEFVRuhBX2b54qYtmanx1bRn1NDzOesmSdJlAj9Jf59P GX+l+ohP6Anw++FG4jymci0aqVuRbxZ5sEqbXeKyStqFsmLYDI4/B7BJXH/N0TvqvBMttESWD 6/RkeqxZZfN4d/NGR808hnIVwUI0Y+4qSBojpUzTVALC+azSOhtJK/Od03Qt1c0ks2FktH1Sp ZeGnoRb2F8PEQYShQjoZ1clM2CUbENeFjEJQ6/S7/PZpDBeNAmtLYsmFq6UEZ0fG0es1m/eRD XiE5H+BnbiyJt9o2Oyzj1xNkbrIhXJulyM4ZmZghrFmttoVKjRFmrPhB3sVUzwTNZ100= Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The ks8695 gpio driver has its own copy of the irq_to_gpio() function. This is completely unused in the mainline kernel after we converted all remaining users several years ago, so we can remove the definition as well. Signed-off-by: Arnd Bergmann --- drivers/gpio/gpio-ks8695.c | 12 ------------ 1 file changed, 12 deletions(-) -- 2.7.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-ks8695.c b/drivers/gpio/gpio-ks8695.c index 9f86ed9c753b..179723d02f55 100644 --- a/drivers/gpio/gpio-ks8695.c +++ b/drivers/gpio/gpio-ks8695.c @@ -205,18 +205,6 @@ static int ks8695_gpio_to_irq(struct gpio_chip *gc, unsigned int pin) return gpio_irq[pin]; } -/* - * Map IRQ number to GPIO line. - */ -int irq_to_gpio(unsigned int irq) -{ - if ((irq < KS8695_IRQ_EXTERN0) || (irq > KS8695_IRQ_EXTERN3)) - return -EINVAL; - - return (irq - KS8695_IRQ_EXTERN0); -} -EXPORT_SYMBOL(irq_to_gpio); - /* GPIOLIB interface */ static struct gpio_chip ks8695_gpio_chip = {