From patchwork Sat Jun 9 14:02:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz Krzysztofik X-Patchwork-Id: 10455897 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E115E6028A for ; Sat, 9 Jun 2018 14:02:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF9B8223A6 for ; Sat, 9 Jun 2018 14:02:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C38DE223B2; Sat, 9 Jun 2018 14:02:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7E729223A6 for ; Sat, 9 Jun 2018 14:02:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=leL5b2p9vng1J5NH85BstnlexyyRFPhLUX6QMGtxdrA=; b=tNt eTTzv/D9O90VzAJLqzmq62hifJpApnHd7h5xTFNLtJJDlBBLhoqSXBIsMyjVNd8fG7ob0HFmYZiW8 kTHDqRMX53/h75o4Mio51ga5OTH2mHxDDaXqz9cqcMIbSitrZehNrGItYCiYgzJzCmpCj9ybcsR4U 42YLT6XZHuTT5M/F3t1SebE7gbkIc75JHwjJwOcoJpJNHG5P0AXiJRRLfxIdVMAhiIMY5ZeiK2vln pE49Jux+92ueCG2OCO1z8OoAwyk4yRIuM4Q+HHtm0hfHdqanRNYUShPvsIeBE+AaujO8F+PMdDb5v usI+UCYhOAA1Ow7HW6+kDluiYphrBSg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fReSB-0007G3-4T; Sat, 09 Jun 2018 14:02:51 +0000 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fReS7-00078y-SU for linux-arm-kernel@lists.infradead.org; Sat, 09 Jun 2018 14:02:49 +0000 Received: by mail-lf0-x242.google.com with SMTP id j13-v6so24175204lfb.13 for ; Sat, 09 Jun 2018 07:02:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=KqMR5MOiwe8rDPnpmEXsY4mPzCR9+MDFfmVGp35l1fk=; b=c8rRgTOQR3h0EK3AeiRK/DuGd6y3FmRNLhkFeBHyuI7diXXpvGNxI+idLx24zfLvmu YMoumiSLbV4JPj+I3JbZkPsfykU9+SpcYRv6BoJkoQ3EIOcAG2cNuFjvna9QFBa/FQIk mWRM1Uxa2oiCcAX7FOZcX2HZQ1edbPvwtG2z0zAmDrUhYcwc8Ml8zxZ8FkBZlVFNNi5h MHvhFC201fQDhsOnD5TzuPJ/pBAbI6+GpCjT32v7Fs12o8spuSSBM4gSZdNUZcLGrZS1 5TulQFxQJ7aWkMZRq9dByEOt59aiJg6XTW0VyOIx/FxiY4i0H0MYKI3p1t4bifUkxdzx UNgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KqMR5MOiwe8rDPnpmEXsY4mPzCR9+MDFfmVGp35l1fk=; b=hzUBVWZAaYZDiz7lkchuTxSPrAMaID69rp7FdKFADpu5PvNP3GLNQDrto0W7LjnDA9 F2pluqnQ9uxzN5kEpwaK28XjsRCXFAVDovL5HqPy+GLE3RqJAicWC95p0R8rHjdAbECv vqoGUGvP8PSX71pP8fgH/fJY1HXmWCrICoBk8o5ehZEKxgG+hCNzziAaFg48SB7FoRbG qsOssuHeIXTuf/6i2afTgWGm7zwGSSJRwPN6EpFwHw0oP3OzIMDiwf6V49U35Bpf79Jq 3YL+xRTjpzjO72rD4UuxKM1WwyNZ6ysCoJkanpbqrOJjLol4oeiIbKT08g3hdKTqMxkb dNoA== X-Gm-Message-State: APt69E1jssEYTFpNBkdQvZUluNVH0aeEblFKwq7ZsGNmwYIXs9bfYp98 ouSzSOS6UChwH2SACVT8fTQ= X-Google-Smtp-Source: ADUXVKJtTVVAWwhgWd0C15mEp86/PWpbpAgiLwVfjt6AzUOJGmSmF+YB5dhDsp0+1PvYxHWVEsLxmA== X-Received: by 2002:a19:7:: with SMTP id 7-v6mr6644480lfa.62.1528552955633; Sat, 09 Jun 2018 07:02:35 -0700 (PDT) Received: from localhost.localdomain (apn-31-0-40-98.dynamic.gprs.plus.pl. [31.0.40.98]) by smtp.gmail.com with ESMTPSA id n84-v6sm4477727lfi.19.2018.06.09.07.02.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Jun 2018 07:02:34 -0700 (PDT) From: Janusz Krzysztofik To: Dmitry Torokhov , Tony Lindgren , Aaro Koskinen Subject: [PATCH 01/10] ARM: OMAP1: ams-delta: drop GPIO lookup table for serio device Date: Sat, 9 Jun 2018 16:02:15 +0200 Message-Id: <20180609140224.32606-1-jmkrzyszt@gmail.com> X-Mailer: git-send-email 2.16.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180609_070247_946159_10A084F6 X-CRM114-Status: GOOD ( 13.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Greg Kroah-Hartman , Linus Walleij , Randy Dunlap , Janusz Krzysztofik , Liam Girdwood , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Mark Brown , linux-input@vger.kernel.org, Mauro Carvalho Chehab , Andrew Morton , linux-omap@vger.kernel.org, "David S . Miller" , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP GPIO lookup table for ams-delta-serio device was introduced by commit 0486738928bf ("ARM: OMAP1: ams-delta: add GPIO lookup tables"). Unfortunately, a follow up patch "Input: ams_delta_serio: use GPIO lookup table" was not accepted by subystem maintainer who requested conversion of the driver to a platform driver, replacepemnt of IRQ GPIO pin with IRQ resource, replacement of GPIO pin providing keyboard power with a regulator and removal of remaining GPIO pins from the driver as not handled by it. Let's start with removal of no the longer needed GPIO lookup table from the board init file. Series created and tested on top of next-20180608 tag from linux-next tree. Signed-off-by: Janusz Krzysztofik --- arch/arm/mach-omap1/board-ams-delta.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c index 80f54cb54276..18e0ff437b27 100644 --- a/arch/arm/mach-omap1/board-ams-delta.c +++ b/arch/arm/mach-omap1/board-ams-delta.c @@ -504,20 +504,6 @@ static struct platform_device cx20442_codec_device = { .id = -1, }; -static struct gpiod_lookup_table ams_delta_serio_gpio_table = { - .table = { - GPIO_LOOKUP(OMAP_GPIO_LABEL, AMS_DELTA_GPIO_PIN_KEYBRD_DATA, - "data", 0), - GPIO_LOOKUP(OMAP_GPIO_LABEL, AMS_DELTA_GPIO_PIN_KEYBRD_CLK, - "clock", 0), - GPIO_LOOKUP(LATCH2_LABEL, LATCH2_PIN_KEYBRD_PWR, - "power", 0), - GPIO_LOOKUP(LATCH2_LABEL, LATCH2_PIN_KEYBRD_DATAOUT, - "dataout", 0), - { }, - }, -}; - static struct platform_device *ams_delta_devices[] __initdata = { &latch1_gpio_device, &latch2_gpio_device, @@ -534,7 +520,6 @@ static struct platform_device *late_devices[] __initdata = { static struct gpiod_lookup_table *ams_delta_gpio_tables[] __initdata = { &ams_delta_audio_gpio_table, - &ams_delta_serio_gpio_table, }; static struct gpiod_lookup_table *late_gpio_tables[] __initdata = { @@ -580,10 +565,6 @@ static void __init ams_delta_init(void) */ ams_delta_audio_gpio_table.dev_id = dev_name(&ams_delta_audio_device.dev); - /* - * No device name is assigned to GPIO lookup table for serio device - * as long as serio driver is not converted to platform device driver. - */ gpiod_add_lookup_tables(ams_delta_gpio_tables, ARRAY_SIZE(ams_delta_gpio_tables));