gpio: tegra: implement gpio_request and gpio_free.
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 24 Apr 2012 13:33:26 +0000 (18:33 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Fri, 4 May 2012 14:31:45 +0000 (19:31 +0530)
commit22c270e8a409fbd387a4105601a1d08597911ad2
treed960674fdeeadc8afeaabbd589e5884abb2e2896
parent19155a57d84fe25f98e5b890a35a85238131b8b4
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