summaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-08-06 17:36:37 +0200
committerMike Frysinger <vapier@gentoo.org>2010-08-06 18:55:58 +0200
commitaab2393e2ec52c74b419af7c26a12e21584e483b (patch)
treec14289c3b74342c26b2ce652d2b0173f36e60684 /arch/blackfin
parentBlackfin: update defconfigs (diff)
downloadlinux-aab2393e2ec52c74b419af7c26a12e21584e483b.tar.xz
linux-aab2393e2ec52c74b419af7c26a12e21584e483b.zip
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: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/include/asm/gpio.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/gpio.h b/arch/blackfin/include/asm/gpio.h
index 0300c6a09d5b..1ef8417f5d27 100644
--- a/arch/blackfin/include/asm/gpio.h
+++ b/arch/blackfin/include/asm/gpio.h
@@ -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);