gpiolib: wm8994: Fix irq offset for gpio_to_irq
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/gpio/gpio-wm8994.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpio/gpio-wm8994.c +2 -1
@@ -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 )); }
Signature · 1 line
1.7.9.5