Skip to content

Commit

Permalink
Blackfin: gpio: add a debounce stub
Browse files Browse the repository at this point in the history
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: Mike Frysinger <vapier@gentoo.org>
  • Loading branch information
Mike Frysinger committed Aug 6, 2010
1 parent bad6b09 commit aab2393
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/blackfin/include/asm/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ static inline int gpio_direction_output(unsigned gpio, int 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)
{
return bfin_gpio_get_value(gpio);
Expand Down

0 comments on commit aab2393

Please sign in to comment.