pinctrl: samsung: Add GPIO to IRQ translation
authorTomasz Figa <t.figa@samsung.com>
Thu, 11 Oct 2012 08:11:20 +0000 (10:11 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Oct 2012 07:10:12 +0000 (09:10 +0200)
commita19fe2d45cc550ca42a3b0be3e716a8452e4b0c6
tree61a08c16723f3cab0deeb89ff3ab753513916bb9
parent22b9ba033bb4401e4cceb69c9e1af74a4631dd74
pinctrl: samsung: Add GPIO to IRQ translation

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

This patch adds the .to_irq() gpiolib callback to pinctrl-samsung
driver, which creates (if not present yet) and returns an IRQ mapping
for given GPIO pin.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-samsung.c