From patchwork Mon Feb 15 15:46:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102782 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1142299lbl; Mon, 15 Feb 2016 07:47:59 -0800 (PST) X-Received: by 10.67.6.72 with SMTP id cs8mr23789744pad.138.1455551278933; Mon, 15 Feb 2016 07:47:58 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12si44024353pap.197.2016.02.15.07.47.58; Mon, 15 Feb 2016 07:47:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752299AbcBOPrz (ORCPT + 30 others); Mon, 15 Feb 2016 10:47:55 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:58330 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752249AbcBOPrw (ORCPT ); Mon, 15 Feb 2016 10:47:52 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue002) with ESMTPA (Nemesis) id 0MMbDq-1adaRI3cq6-008GEP; Mon, 15 Feb 2016 16:47:23 +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 Subject: [PATCH 2/4] gpio: ks8695: remove irq_to_gpio function Date: Mon, 15 Feb 2016 16:46:29 +0100 Message-Id: <1455551208-2825510-3-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1455551208-2825510-1-git-send-email-arnd@arndb.de> References: <20160202194831.10827.63244.stgit@bhelgaas-glaptop2.roam.corp.google.com> <1455551208-2825510-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:57ep3KUDiX/gZ24wnWpklsCTou+6wqIdHI/neJTADQpf0+glKzd zHs2hf9eFTvkI4ZD9HNu4pSuzoamE7w1wAtItk3CxtB5ohOA2YaZAW/jYJWcmRHuHkfrgIW ehoEuNmQyQturOJQX23T7YM8ajNibqfsI/WLZKYtUOd8wcndXXv1wipJVxOiDsMgv18+DRc NRVpXOL8i64hGfBCraxgA== X-UI-Out-Filterresults: notjunk:1; V01:K0:MsWO3qJiMbk=:wgVqiq1yBluP5iEKG1P98T Enn5m+ghqNcwntqOcBG0SIwXYGogOnxHJNFxNe0Ini8NQ7LkA+re/opBb8bah0t0FNdFN3B0X P85Sz+k3YyaHOg97YJT7Fi+Un9++Htjmo2M7fI1LB48uzWSPtAxLsL6nMnK2xz2ekY46z0sQd sYoIxjUppCQHXjk2JRYKgvM8+j3bkxRl/RxkDW0fxFezuLeI6LA0n33EgV3Owahj3nFR0J2j4 /f1B8l7XbvwuMtJJfPGANm23YJE7UNTB6R+Y+fzCIVCySmjAqlpdtWQ6Q8pOXhq+OKfYJvMVe xWuK+sTav/HnI4c0m2+nNVFj7fMT1XqGVB43Pjtd/qqPQT5NAuLoVWnnPpLQn3jvWZhbOEXaO lYITNW7mTwmJG0AHX586SPzuCX/c3PTUA2M5LF8cWXwASmPYdtteeaIwP97tx8v3JzfW/IWLV Y8snw/UzPvVGPYdmdg7onkSPGBy8vhgYHpJVQjB+4U1tbAZ3NbN0jgOKZXJgh1L+d8ysLUFYg Ac/5lc5uF/waLdRcRHFe9yNpZxpXMSGd7V9pySmavRJxBxUFQPbjHY70u/qF+jx4mrYiPmbcv aKBu36mKbFiLw84r2+SPQNQXl5+/rYc8Qi1rk86ufFf5zXXgiiBFH5QQSIA1blnpvzAMJi+Pr wsHryk89AtZvcO5E0f0JxR2bN05caAo1lJY5G+sQsl7fnjgsjTrd0xqE1APexfs0wphg= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 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 = {