]> git.karo-electronics.de Git - linux-beck.git/commit
pinctrl: lantiq: Implement gpio_chip.to_irq
authorJohn Crispin <blogic@openwrt.org>
Fri, 4 Dec 2015 10:05:44 +0000 (11:05 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 10 Dec 2015 23:05:19 +0000 (00:05 +0100)
commit3e640743fee6e6a82ead1f163737755b2a965712
tree14b2fa69fadf2ccb5ac2fb9cb064023add7dfefe
parentb4818afeacbd81821f89a89951471cffcb6a65e0
pinctrl: lantiq: Implement gpio_chip.to_irq

Some drivers require a way to translate GPIO pins to their IRQ numbers.

This patch adds the .to_irq() gpiolib callback to the pinctrl-xway
driver, which returns an IRQ mapping for a given GPIO pin.

Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Martin Schiller <mschiller@tdt.de>
[Switched ->dev to ->parent]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-xway.c