diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-07-31 15:38:43 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-08-16 13:37:54 -0700 |
commit | a6e2dc5aacc56bdbc771cdf0e9e75924c1ea6650 (patch) | |
tree | 43037b93a441686a7a91bc5d1d7e02825c1b2f0c /drivers | |
parent | 43ecb3724fa90222dd6cd502aee422364b0c65cb (diff) |
gpio: tegra: hide tegra_gpio_enable()/disable()
The direction apis and irq_set_wake() support the
configuration of pins in gpio mode and hence it
is not require to export the apis for gpio_enable()/
gpio_disable().
Hiding these api.
Change-Id: I5493e4f270df85da21afb6500ac841f4fa4b522a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119616
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/gpio-tegra.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index c1a80fb8578d..b7662ae32fd1 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c @@ -142,7 +142,7 @@ int tegra_gpio_get_bank_int_nr(int gpio) return irq; } -void tegra_gpio_enable(int gpio) +static void tegra_gpio_enable(int gpio) { if (gpio >= TEGRA_NR_GPIOS) { pr_warn("%s : Invalid gpio ID - %d\n", __func__, gpio); @@ -150,9 +150,8 @@ void tegra_gpio_enable(int gpio) } tegra_gpio_mask_write(GPIO_MSK_CNF(gpio), gpio, 1); } -EXPORT_SYMBOL_GPL(tegra_gpio_enable); -void tegra_gpio_disable(int gpio) +static void tegra_gpio_disable(int gpio) { if (gpio >= TEGRA_NR_GPIOS) { pr_warn("%s : Invalid gpio ID - %d\n", __func__, gpio); @@ -160,7 +159,6 @@ void tegra_gpio_disable(int gpio) } tegra_gpio_mask_write(GPIO_MSK_CNF(gpio), gpio, 0); } -EXPORT_SYMBOL_GPL(tegra_gpio_disable); void tegra_gpio_init_configure(unsigned gpio, bool is_input, int value) { |