gpio: tegra: implement gpio_request and gpio_free.
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 24 Apr 2012 13:33:26 +0000 (18:33 +0530)
committerRohan Somvanshi <rsomvanshi@nvidia.com>
Thu, 3 May 2012 20:40:00 +0000 (13:40 -0700)
commit38c804ed53aae503693338e0135a506a81ce2c11
treec49cb49e7e9d4686dab853a4a6da9354b9c4cef7
parentda0d098d0ecc5cb99b8367f7067b4e57604347de
gpio: tegra: implement gpio_request and gpio_free.

Recent pinctrl discussions concluded that gpiolib APIs
should in fact do whatever is required to mux a GPIO onto
pins.
This change is based on the work done by Stephen Warren in mainline
kernel.
-----
commit 3e215d0a19c2a0c389bd9117573b6dd8e46f96a8

    gpio: tegra: Hide tegra_gpio_enable/disable()

    Recent pinctrl discussions concluded that gpiolib APIs should in fact do
    whatever is required to mux a GPIO onto pins, by calling pinctrl APIs if
    required. This change implements this for the Tegra GPIO driver, and removes
    calls to the Tegra-specific APIs from drivers and board files.
----

Change-Id: I482ea5c177cf2ee6fa06ddac48b556f1508efacb
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/98466
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
drivers/gpio/gpio-tegra.c