]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: ep93xx: Use the hwirq and port
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 22 Aug 2018 20:41:08 +0000 (22:41 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Aug 2018 07:08:58 +0000 (09:08 +0200)
commit51ba88e32ff5b3caee39862c862a7a1fbae78b2b
treecd492ae971b4c185e34f6489b810c0cd358ccad6
parentfd935fc421e74b9777370a0175bc011b780173d3
gpio: ep93xx: Use the hwirq and port

In the IRQ-related functions, switch to using the hwirq
and port number found from the current struct gpio_chip *

As the lower 3 bits of the IRQ number is identical to the
lower 3 bits of the GPIO number we can cut some corners.

Call directly into the gpiochip to set up the direction
and read the input instead of using the consumer API.

This enabled us to cut the confusing irq_to_gpio() macro
that is a remnant of the old generic GPIO API as well.

Acked-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-ep93xx.c