Skip to content

Commit fe5e169

Browse files
Varun WadekarRohan Somvanshi
Varun Wadekar
authored and
Rohan Somvanshi
committed
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 <[email protected]> Reviewed-on: http://git-master/r/75639 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <[email protected]>
1 parent 4f5892b commit fe5e169

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/gpio/gpio-tegra.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,19 @@ static int tegra_gpio_direction_output(struct gpio_chip *chip, unsigned offset,
202202
return 0;
203203
}
204204

205-
205+
static int tegra_gpio_set_debounce(struct gpio_chip *chip, unsigned offset,
206+
int value)
207+
{
208+
return -ENOSYS;
209+
}
206210

207211
static struct gpio_chip tegra_gpio_chip = {
208212
.label = "tegra-gpio",
209213
.direction_input = tegra_gpio_direction_input,
210214
.get = tegra_gpio_get,
211215
.direction_output = tegra_gpio_direction_output,
212216
.set = tegra_gpio_set,
217+
.set_debounce = tegra_gpio_set_debounce,
213218
.base = 0,
214219
.ngpio = TEGRA_NR_GPIOS,
215220
};

0 commit comments

Comments
 (0)