Skip to content

Commit

Permalink
gpio: tegra: add stub set_debounce callback
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Varun Wadekar authored and Rohan Somvanshi committed Jan 19, 2012
1 parent 4f5892b commit fe5e169
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/gpio/gpio-tegra.c
Expand Up @@ -202,14 +202,19 @@ 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",
.direction_input = tegra_gpio_direction_input,
.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,
};
Expand Down

0 comments on commit fe5e169

Please sign in to comment.