gpio: omap: implement get_direction
authorYegor Yefremov <yegorslists@googlemail.com>
Thu, 24 Apr 2014 06:57:39 +0000 (08:57 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 28 Apr 2014 19:35:10 +0000 (12:35 -0700)
commit9370084e685666fe33e9d62707433fa112446b03
treec927d2b8c41430de73de5f013320189424236910
parent47a95fe71662fa38ff3abe9956f1ca1451fa6e70
gpio: omap: implement get_direction

This patch implements gpio_chip's get_direction() routine, that
lets other drivers get particular GPIOs direction using
struct gpio_desc.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Acked-by: Javier Martinez Canillas <javier@dowhile0.org>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c