Commit 438a99c0 authored by Stephen Warren's avatar Stephen Warren Committed by Russell King

ARM: 7053/1: gpio/tegra: Implement gpio_chip.to_irq

Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 47008001
...@@ -134,7 +134,10 @@ static int tegra_gpio_direction_output(struct gpio_chip *chip, unsigned offset, ...@@ -134,7 +134,10 @@ static int tegra_gpio_direction_output(struct gpio_chip *chip, unsigned offset,
return 0; return 0;
} }
static int tegra_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
{
return TEGRA_GPIO_TO_IRQ(offset);
}
static struct gpio_chip tegra_gpio_chip = { static struct gpio_chip tegra_gpio_chip = {
.label = "tegra-gpio", .label = "tegra-gpio",
...@@ -142,6 +145,7 @@ static struct gpio_chip tegra_gpio_chip = { ...@@ -142,6 +145,7 @@ static struct gpio_chip tegra_gpio_chip = {
.get = tegra_gpio_get, .get = tegra_gpio_get,
.direction_output = tegra_gpio_direction_output, .direction_output = tegra_gpio_direction_output,
.set = tegra_gpio_set, .set = tegra_gpio_set,
.to_irq = tegra_gpio_to_irq,
.base = 0, .base = 0,
.ngpio = TEGRA_NR_GPIOS, .ngpio = TEGRA_NR_GPIOS,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment