From patchwork Tue Jan 19 00:42:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1428363 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=LXs3zwER; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=qkAW+GNn; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DKVM91Ph4z9sSs for ; Tue, 19 Jan 2021 11:45:57 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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=oQfp4qYZGgkbSzUV6QMaCw2Uqbf3bEUzQEmXWRsE7yE=; b=LXs3zwERsLhLbhFeV2zEIWgncC 1o6BB05Bcml/1ANvGhyU+ZoO8G5MR93VZpWm7Th9IQiOvf2Mub1KDflxhA6dBZ7LBpZKoKZYOJhU2 +gqB29lox5pX7iQ8YHNoVlpZydzcwMmeU3qWFqqt2J8ZM53QQ+tm76u58Kxrl9KSNOJBQu3CT9EVW igGyrz+srdWIKTQlaE1aG5bvfeiIBd0Uy8BysXiaXz0BS1cwSxtnubTabvdgcqRmPujjxktxe7JHR +8bGaF3lmRVNngxCdsKUBdWHfhbRN5CfaELlT1PBLk5XdxQp3DDcZEf+1t5auchCHcO8FiJEjB4Rs w5EssI3w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1f8y-0008FK-Hx; Tue, 19 Jan 2021 00:45:12 +0000 Received: from mail-qv1-xf31.google.com ([2607:f8b0:4864:20::f31]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1f8v-0008Ex-Sb for linux-arm-kernel@lists.infradead.org; Tue, 19 Jan 2021 00:45:11 +0000 Received: by mail-qv1-xf31.google.com with SMTP id h13so8429418qvo.1 for ; Mon, 18 Jan 2021 16:45:09 -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:mime-version :content-transfer-encoding; bh=BhbG+xmBp/r9+AGVvHb/iKDSVsXqb7oojLFlsTku7rA=; b=qkAW+GNnR1zWnZdOwZqJH8MKvX0DLm7zsXtpLu9lO6rChchpxzC3svgwKwWwhpqglj qLLAhFuLfp6zMcqcLGl6zOW3aHnG9NVVw5HUDuVDIDJRsH7C3nqvHkfvE9luqKZEGsm9 2UpcBu42ecSaK7ZSm0MI86FEFUkorkhl8gTSL7XolV13nELRX1a0AdjoPB/Tmo8YVs61 nxqGqdjGQ2Dw2K0tXdaG34tQpyBREz0oV216EVz8imUKXo/7yCYcLHhzCM4ltBl+dfUG mtMxaiU7DZal6kYupFeo68DQHNS4bum3SJwN6uyl8BegsGQ2pBTY8CD7YW8YQ88lYjPg 8RyA== 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:mime-version :content-transfer-encoding; bh=BhbG+xmBp/r9+AGVvHb/iKDSVsXqb7oojLFlsTku7rA=; b=VcUob1SZ+N0rzvBv3cdH7K32+Ojt/hUz7bS38Hsep3JCYQx8PCTMzX5dQGqB6KYvTT y2lW9VGhT1/Vuia4zO7cOJKg1pEJP75kSvAyjSGwSrwAzg00mfRvEfu8QUpdECqrCjdl GPWGCYhXCH6Pn80ax85SLcGK8pdeFmdH4Ei2M4xLR0769K0HZ1YkVnLybzMLGpxpMplm 3nRsN+JV0xDe6WdJy96oRgAPWpJMzJxkuFJ9ZUjxUjsbf9S4fsLkYlzCPK0uyji20NJF /vQMA80rGRI+/IHDUHwQ+R9U80/eNav4wJZ9Z7a6vXhpTNz525QvLLQUyAFF40nAJCfJ 8Dxw== X-Gm-Message-State: AOAM533eTZ3sMIC+9lViCN61qzUwuqrL/ypvs5ldM6jVGSWYrhii66up V2E+15cEk7yyBDJZ0SDPL4w= X-Google-Smtp-Source: ABdhPJy1BCKAwLyhmDk75looqqVE+JCMKPQ5YbnZpoFtqSQLLTN5ffy7OZU3OjDJU+TcxkJY+xIXqg== X-Received: by 2002:a0c:a525:: with SMTP id y34mr2250243qvy.37.1611017107614; Mon, 18 Jan 2021 16:45:07 -0800 (PST) Received: from localhost.localdomain ([177.194.79.136]) by smtp.gmail.com with ESMTPSA id h25sm11889678qkh.122.2021.01.18.16.45.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 16:45:06 -0800 (PST) From: Fabio Estevam To: shawnguo@kernel.org Subject: [PATCH] ARM: imx: Remove unused IMX_GPIO_NR() macro Date: Mon, 18 Jan 2021 21:42:51 -0300 Message-Id: <20210119004251.1794302-1-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210118_194509_938136_177A95EF X-CRM114-Status: GOOD ( 10.85 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:f31 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [festevam[at]gmail.com] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabio Estevam , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org The IMX_GPIO_NR() macro was only used by non-DT i.MX platforms. As i.MX transitioned to a DT-only platform, get rid of this unused macro. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/hardware.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/mach-imx/hardware.h b/arch/arm/mach-imx/hardware.h index 7acf7ce467ed..0760fff39a0b 100644 --- a/arch/arm/mach-imx/hardware.h +++ b/arch/arm/mach-imx/hardware.h @@ -106,8 +106,4 @@ .type = _type, \ } -/* There's an off-by-one between the gpio bank number and the gpiochip */ -/* range e.g. GPIO_1_5 is gpio 5 under linux */ -#define IMX_GPIO_NR(bank, nr) (((bank) - 1) * 32 + (nr)) - #endif /* __ASM_ARCH_MXC_HARDWARE_H__ */