diff options
author | Stephen Warren <swarren@nvidia.com> | 2011-08-22 19:39:56 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-08-24 03:28:37 -0400 |
commit | 438a99c078b1bc3c9aebd92e7928f2477311d3e5 (patch) | |
tree | 7b55985c2f4597befc23607c246d7e1d59d2b2d7 | |
parent | 470080015c1f8bbd15ba1486d5c4bd8a3e7fa79a (diff) |
ARM: 7053/1: gpio/tegra: Implement gpio_chip.to_irq
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | drivers/gpio/gpio-tegra.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index ecade29d79e8..df64536464f0 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c | |||
@@ -134,7 +134,10 @@ static int tegra_gpio_direction_output(struct gpio_chip *chip, unsigned offset, | |||
134 | return 0; | 134 | return 0; |
135 | } | 135 | } |
136 | 136 | ||
137 | 137 | static int tegra_gpio_to_irq(struct gpio_chip *chip, unsigned offset) | |
138 | { | ||
139 | return TEGRA_GPIO_TO_IRQ(offset); | ||
140 | } | ||
138 | 141 | ||
139 | static struct gpio_chip tegra_gpio_chip = { | 142 | static struct gpio_chip tegra_gpio_chip = { |
140 | .label = "tegra-gpio", | 143 | .label = "tegra-gpio", |
@@ -142,6 +145,7 @@ static struct gpio_chip tegra_gpio_chip = { | |||
142 | .get = tegra_gpio_get, | 145 | .get = tegra_gpio_get, |
143 | .direction_output = tegra_gpio_direction_output, | 146 | .direction_output = tegra_gpio_direction_output, |
144 | .set = tegra_gpio_set, | 147 | .set = tegra_gpio_set, |
148 | .to_irq = tegra_gpio_to_irq, | ||
145 | .base = 0, | 149 | .base = 0, |
146 | .ngpio = TEGRA_NR_GPIOS, | 150 | .ngpio = TEGRA_NR_GPIOS, |
147 | }; | 151 | }; |