From: Stephen Warren Date: Mon, 22 Aug 2011 23:39:56 +0000 (+0100) Subject: ARM: 7053/1: gpio/tegra: Implement gpio_chip.to_irq X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=438a99c078b1bc3c9aebd92e7928f2477311d3e5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ARM: 7053/1: gpio/tegra: Implement gpio_chip.to_irq Signed-off-by: Stephen Warren Signed-off-by: Russell King --- 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, 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 = { .label = "tegra-gpio", @@ -142,6 +145,7 @@ static struct gpio_chip tegra_gpio_chip = { .get = tegra_gpio_get, .direction_output = tegra_gpio_direction_output, .set = tegra_gpio_set, + .to_irq = tegra_gpio_to_irq, .base = 0, .ngpio = TEGRA_NR_GPIOS, };