mfd: Implement tps6586x gpio_to_irq
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 13 Nov 2012 13:48:07 +0000 (19:18 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 13 Nov 2012 19:02:15 +0000 (20:02 +0100)
commitfe39f2f4dc8481d3aa4561ba649b0c0a4429a49e
treedf8b9915e712ae5aaead904f8a27feda9dcbdbb1
parent5b8b1fe2da98dbc4a10b9ad6d0f9f84e2815d4e4
mfd: Implement tps6586x gpio_to_irq

The TPS6586x adds the interrupt of this device using
linear mapping on irq domain.
Hence, implement gpio_to_irq to get the irq number
corresponding to TPS6586x GPIOs which is created
dynamically.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/gpio/gpio-tps6586x.c