diff options
author | Varun Wadekar <vwadekar@nvidia.com> | 2012-01-17 13:43:39 +0530 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-01-19 10:30:05 -0800 |
commit | fe5e1690d6d2e0625e8a4ed8d3953ac304c893de (patch) | |
tree | ba50d83cee1f8bf1bb2c5dd0720c22aa52f6a11d | |
parent | 4f5892b1c1aa1ffb085333bb2412464a66910a99 (diff) |
gpio: tegra: add stub set_debounce callback
gpiolib spits out error messages if the underlying
driver does not implement the set_debounce api.
Add stub api since Tegra does not support
gpio debounce in hardware.
Bug 924471
Change-Id: Iadd4ddb41a3a028edf7d55fccf100c8d4bcb5fa2
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/75639
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
-rw-r--r-- | drivers/gpio/gpio-tegra.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index c1fba8d97f47..9feafe7d60c1 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c @@ -202,7 +202,11 @@ static int tegra_gpio_direction_output(struct gpio_chip *chip, unsigned offset, return 0; } - +static int tegra_gpio_set_debounce(struct gpio_chip *chip, unsigned offset, + int value) +{ + return -ENOSYS; +} static struct gpio_chip tegra_gpio_chip = { .label = "tegra-gpio", @@ -210,6 +214,7 @@ static struct gpio_chip tegra_gpio_chip = { .get = tegra_gpio_get, .direction_output = tegra_gpio_direction_output, .set = tegra_gpio_set, + .set_debounce = tegra_gpio_set_debounce, .base = 0, .ngpio = TEGRA_NR_GPIOS, }; |