summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-07-31 15:38:43 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2012-08-21 15:30:50 +0530
commitb5ef06eaaaf18f336e7dc5f242bf0037bc549ec1 (patch)
tree65f34826cab26580ace808761bc8a4bbbd873edb /drivers/gpio
parentda962d396e6953579067bb5fc3fa2df817397759 (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/gpio')
-rw-r--r--drivers/gpio/gpio-tegra.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c
index 2089712759fd..5c3d55e442e3 100644
--- a/drivers/gpio/gpio-tegra.c
+++ b/drivers/gpio/gpio-tegra.c
@@ -136,7 +136,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);
@@ -144,9 +144,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);
@@ -154,7 +153,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)
{