From: swarren@nvidia.com (Stephen Warren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] arm/tegra: Delete irq_to_gpio
Date: Fri, 5 Aug 2011 16:15:34 -0600 [thread overview]
Message-ID: <1312582534-10871-2-git-send-email-swarren@nvidia.com> (raw)
In-Reply-To: <1312582534-10871-1-git-send-email-swarren@nvidia.com>
irq_to_gpio is deprecated and in the process of being removed. Make that
happen now for ARM Tegra.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
I assume this will go into one of arm-soc.git's branches, but it depends
on the previous patch in this series to compile. Arnd, I see you already
have Grant's gpio/next tree in your repo as depends/gpio, so I assume
you'll just pick up and merge the latest version of Grant's tree before
applying this patch?
Both patches compiled with a number of Tegra boards enable and tested on
Harmony. All without Device Tree support.
arch/arm/mach-tegra/include/mach/gpio.h | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/arch/arm/mach-tegra/include/mach/gpio.h b/arch/arm/mach-tegra/include/mach/gpio.h
index 196f114..b357808 100644
--- a/arch/arm/mach-tegra/include/mach/gpio.h
+++ b/arch/arm/mach-tegra/include/mach/gpio.h
@@ -32,7 +32,6 @@
#define gpio_cansleep __gpio_cansleep
#define TEGRA_GPIO_TO_IRQ(gpio) (INT_GPIO_BASE + (gpio))
-#define TEGRA_IRQ_TO_GPIO(irq) ((irq) - INT_GPIO_BASE)
static inline int gpio_to_irq(unsigned int gpio)
{
@@ -41,13 +40,6 @@ static inline int gpio_to_irq(unsigned int gpio)
return -EINVAL;
}
-static inline int irq_to_gpio(unsigned int irq)
-{
- if ((irq >= INT_GPIO_BASE) && (irq < INT_GPIO_BASE + INT_GPIO_NR))
- return irq - INT_GPIO_BASE;
- return -EINVAL;
-}
-
struct tegra_gpio_table {
int gpio; /* GPIO number */
bool enable; /* Enable for GPIO@init? */
--
1.7.0.4
next prev parent reply other threads:[~2011-08-05 22:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-05 22:15 [PATCH 1/2] gpio/tegra: Remove use of irq_to_gpio Stephen Warren
2011-08-05 22:15 ` Stephen Warren [this message]
2011-08-06 17:45 ` [PATCH 2/2] arm/tegra: Delete irq_to_gpio Grant Likely
2011-08-08 14:26 ` Stephen Warren
2011-08-08 14:51 ` Olof Johansson
2011-08-08 17:50 ` Grant Likely
2011-08-08 18:05 ` Russell King - ARM Linux
2011-08-08 18:10 ` Grant Likely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1312582534-10871-2-git-send-email-swarren@nvidia.com \
--to=swarren@nvidia.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox