From patchwork Wed Nov 7 20:17:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz Krzysztofik X-Patchwork-Id: 10673025 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 339B113BF for ; Wed, 7 Nov 2018 20:16:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 250872D095 for ; Wed, 7 Nov 2018 20:16:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1992B2D0A1; Wed, 7 Nov 2018 20:16:38 +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.6 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,HK_RANDOM_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW 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 C10E22D095 for ; Wed, 7 Nov 2018 20:16:37 +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:References: In-Reply-To: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:List-Owner; bh=tLCe3NfT9YUz6STq2z6Vl6np471/qVUCkBty71fv7tM=; b=PMgYEFqVUbVvdcRfdlPrRYYMkN p0JE6UjD6V6/TSQKflsCDAcvBFoTPdAFWra+WdhucjAAJ1KFCZblN6VCalWZyjb2BBdp2Jax9VLuH XM8qDr6iihV8337J9WRhPj/LpVRsHAIuf8jUODaasWZg/mTsJorCvMt+MYYRaqXZloUp553AL5MB/ mahsKv+3rMhaU3QF01kWnBbkYnPonkxYQV8LtBxY4E6SYLSPU18NZ0AQx1Dx/QNXXerZy99s1OIbh /AxblrI8JI8EW3lD6aHDJKno8XqvD3qqFeGgm6IGM+oRJvfnpzpHoQw7zGimlUhVMhQmrqKOPlyQL ehljAMrQ==; 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 1gKUFg-0005Bi-Ef; Wed, 07 Nov 2018 20:16:36 +0000 Received: from mail-lf1-x143.google.com ([2a00:1450:4864:20::143]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKUFW-00050j-EP for linux-arm-kernel@lists.infradead.org; Wed, 07 Nov 2018 20:16:28 +0000 Received: by mail-lf1-x143.google.com with SMTP id c16so12435386lfj.8 for ; Wed, 07 Nov 2018 12:16:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=39mD7pgVBuElFJQ3mjWUtS+vlqTvSmmnI9p5XoWxu2c=; b=PoswbhgfLu+Y1TgpE7Vw26Nget0TxVpH0ftCItkypEY2qHc+OWSwfFzZCTCaWhL6qr m7sTF2yVw/orK7cwlhdCn+TWNdmuhcbVRlY05p7bSjUX/tuQf2dT7+TJEfyjYwJIDIaO Rw8S+og6WSoYO01OwVCJBzL/kBBiG0cibc5J7/+raSzpUfzRCY2PjI9lw6+hbpx6RBuX eb/9PPlPhHmx7YjIl8iHVHcwuzTTPNPaxQrQz7si0pB8S72avsJl1fmVo0kCL+O0U6tJ i/O+r3+NC0TbqbOrMivcIZclP3sdiv6SSqvTiGdYn13oJBG44ggiMU3oksbFrsRSZuHp 2W7Q== 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:in-reply-to :references; bh=39mD7pgVBuElFJQ3mjWUtS+vlqTvSmmnI9p5XoWxu2c=; b=QKfkY6ZSTuNUUoIdQsLM3iY4TUr7CnGtm2rMhGQNGdnZh3ZN75WslDlNPStbPW1lZD QinvysCnSyJ7IJHEDPMECAQ7Eym77ljE1/3xSBQ9mtpRXl/So3RFwMXtnpjzucs8qk3Y TSBu0LHTgTkMX5h6ZCgWQm98fxo8VZsC0S43MbhTHkHrp9YT0qGHNZ58KPomhF9BKiws pXDFT4/OrgZD1v7IEkRY2ln/LzzdMnxz/evGIVfi051q9taDIyazy4FEVX38FlfDFQJU F1oPoJf3Vc/l98XETBvsoR83IoIH8bvXGAU58as7X33+ZKEjNMwcANEoT/Ugt9vS+7U5 Bs/A== X-Gm-Message-State: AGRZ1gKUQ+tWgiikJm8QLQnM6dlZn9v7Zc+BAljhbly4giY9QfPfXpz8 bw23/uUOi/G4F4XYP/vlNuo= X-Google-Smtp-Source: AJdET5eeUSqla6DNbcynhxJFlwkG88h4g49E9DtL8RXu06qWx7VHqkQnsLEVI242UWjBrI6cflWqlA== X-Received: by 2002:a19:7919:: with SMTP id u25mr962730lfc.18.1541621774451; Wed, 07 Nov 2018 12:16:14 -0800 (PST) Received: from z50.lan (93-181-165-181.internetia.net.pl. [93.181.165.181]) by smtp.gmail.com with ESMTPSA id c19sm285650lfg.86.2018.11.07.12.16.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 12:16:13 -0800 (PST) From: Janusz Krzysztofik To: Tony Lindgren Subject: [PATCH 1/3] ARM: OMAP1: ams-delta: Drop board specific global GPIO numbers Date: Wed, 7 Nov 2018 21:17:44 +0100 Message-Id: <20181107201746.14705-2-jmkrzyszt@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20181107201746.14705-1-jmkrzyszt@gmail.com> References: <20181107201746.14705-1-jmkrzyszt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181107_121626_482028_3D7D354E X-CRM114-Status: GOOD ( 11.42 ) 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: Aaro Koskinen , Linus Walleij , Janusz Krzysztofik , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, 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 As all users of the board specific GPIO pins have been converted from legacy integer-based to descriptor-based interface, there is no longer a need to maintain statically assigned GPIO pin numbers. Drop support for that. Signed-off-by: Janusz Krzysztofik --- arch/arm/mach-omap1/board-ams-delta.c | 3 --- arch/arm/mach-omap1/board-ams-delta.h | 16 ---------------- 2 files changed, 19 deletions(-) diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c index 19e0c071d675..a6986a83a916 100644 --- a/arch/arm/mach-omap1/board-ams-delta.c +++ b/arch/arm/mach-omap1/board-ams-delta.c @@ -167,7 +167,6 @@ static struct omap_usb_config ams_delta_usb_config __initdata = { .pins[0] = 2, }; -#define LATCH1_GPIO_BASE 232 #define LATCH1_NGPIO 8 static struct resource latch1_resources[] = { @@ -183,7 +182,6 @@ static struct resource latch1_resources[] = { static struct bgpio_pdata latch1_pdata = { .label = LATCH1_LABEL, - .base = LATCH1_GPIO_BASE, .ngpio = LATCH1_NGPIO, }; @@ -219,7 +217,6 @@ static struct resource latch2_resources[] = { static struct bgpio_pdata latch2_pdata = { .label = LATCH2_LABEL, - .base = AMS_DELTA_LATCH2_GPIO_BASE, .ngpio = AMS_DELTA_LATCH2_NGPIO, }; diff --git a/arch/arm/mach-omap1/board-ams-delta.h b/arch/arm/mach-omap1/board-ams-delta.h index a74a306d7e77..06e4c64a47f8 100644 --- a/arch/arm/mach-omap1/board-ams-delta.h +++ b/arch/arm/mach-omap1/board-ams-delta.h @@ -41,22 +41,6 @@ #define AMS_DELTA_GPIO_PIN_CONFIG 11 #define AMS_DELTA_GPIO_PIN_NAND_RB 12 -#define AMS_DELTA_GPIO_PIN_LCD_VBLEN 240 -#define AMS_DELTA_GPIO_PIN_LCD_NDISP 241 -#define AMS_DELTA_GPIO_PIN_NAND_NCE 242 -#define AMS_DELTA_GPIO_PIN_NAND_NRE 243 -#define AMS_DELTA_GPIO_PIN_NAND_NWP 244 -#define AMS_DELTA_GPIO_PIN_NAND_NWE 245 -#define AMS_DELTA_GPIO_PIN_NAND_ALE 246 -#define AMS_DELTA_GPIO_PIN_NAND_CLE 247 -#define AMS_DELTA_GPIO_PIN_KEYBRD_PWR 248 -#define AMS_DELTA_GPIO_PIN_KEYBRD_DATAOUT 249 -#define AMS_DELTA_GPIO_PIN_SCARD_RSTIN 250 -#define AMS_DELTA_GPIO_PIN_SCARD_CMDVCC 251 -#define AMS_DELTA_GPIO_PIN_MODEM_NRESET 252 -#define AMS_DELTA_GPIO_PIN_MODEM_CODEC 253 - -#define AMS_DELTA_LATCH2_GPIO_BASE AMS_DELTA_GPIO_PIN_LCD_VBLEN #define AMS_DELTA_LATCH2_NGPIO 16 #endif /* CONFIG_MACH_AMS_DELTA */