]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: omap: convert gpio irq functions to use GPIO offset
authorGrygorii Strashko <grygorii.strashko@linaro.org>
Mon, 23 Mar 2015 12:18:27 +0000 (14:18 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 27 Mar 2015 10:06:22 +0000 (11:06 +0100)
commit11da1688f840d64a8a0ef981ac4b9e8149da1918
tree0b8c431693e2f6ec00df6b454ca72ad03cea5505
parent1ec16e49e8f9daa294008095390d0dc1e174803f
gpio: omap: convert gpio irq functions to use GPIO offset

Convert GPIO IRQ functions to use GPIO offset instead of system
GPIO numbers. This allows to drop unneeded conversations between
system GPIO <-> GPIO offset which are done in many places and
many times.
It is safe to do now because:
- gpiolib always passes GPIO offset to GPIO controller
- OMAP GPIO driver converted to use IRQ domain, so
  struct irq_data->hwirq contains GPIO offset

This is preparation step before removing:
 #define GPIO_INDEX(bank, gpio)
 #define GPIO_BIT(bank, gpio)
 int omap_irq_to_gpio()

Tested-by: Tony Lindgren <tony@atomide.com>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Acked-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Grygorii Strashko <grygorii.strashko@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c