[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1407843860-4957-1-git-send-email-nikesh@opensource.wolfsonmicro.com>
Date: Tue, 12 Aug 2014 12:44:20 +0100
From: Nikesh Oswal <nikesh@...nsource.wolfsonmicro.com>
To: broonie@...nel.org, lgirdwood@...il.com
Cc: perex@...ex.cz, tiwai@...e.de, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org, patches@...nsource.wolfsonmicro.com
Subject: [PATCH] gpiolib: wm8994: Fix irq offset for gpio_to_irq
Earlier code was using the gpio offset as is to get the irq.
For wm8994 driver the gpio related irq's starts from a fixed
offset as fixed by this patch.
Signed-off-by: Nikesh Oswal <nikesh@...nsource.wolfsonmicro.com>
---
drivers/gpio/gpio-wm8994.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-wm8994.c b/drivers/gpio/gpio-wm8994.c
index d93b6b5..dec47c2 100644
--- a/drivers/gpio/gpio-wm8994.c
+++ b/drivers/gpio/gpio-wm8994.c
@@ -113,7 +113,8 @@ static int wm8994_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
struct wm8994_gpio *wm8994_gpio = to_wm8994_gpio(chip);
struct wm8994 *wm8994 = wm8994_gpio->wm8994;
- return regmap_irq_get_virq(wm8994->irq_data, offset);
+ return regmap_irq_get_virq(wm8994->irq_data,
+ WM8994_IRQ_GPIO(offset + 1));
}
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists