Commit aab2393e authored by Mike Frysinger's avatar Mike Frysinger

Blackfin: gpio: add a debounce stub

The GPIO API was extended recently to include debounce functions, but
since the on-chip Blackfin GPIO modules don't support this stuff, make
a stub in the non-GPIOLIB case so drivers build properly.
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent bad6b094
...@@ -279,6 +279,11 @@ static inline int gpio_direction_output(unsigned gpio, int value) ...@@ -279,6 +279,11 @@ static inline int gpio_direction_output(unsigned gpio, int value)
return bfin_gpio_direction_output(gpio, value); return bfin_gpio_direction_output(gpio, value);
} }
static inline int gpio_set_debounce(unsigned gpio, unsigned debounce)
{
return -EINVAL;
}
static inline int gpio_get_value(unsigned gpio) static inline int gpio_get_value(unsigned gpio)
{ {
return bfin_gpio_get_value(gpio); return bfin_gpio_get_value(gpio);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment