projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bad6b09
)
Blackfin: gpio: add a debounce stub
author
Mike Frysinger
<vapier@gentoo.org>
Fri, 6 Aug 2010 15:36:37 +0000
(11:36 -0400)
committer
Mike Frysinger
<vapier@gentoo.org>
Fri, 6 Aug 2010 16:55:58 +0000
(12:55 -0400)
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>
arch/blackfin/include/asm/gpio.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/blackfin/include/asm/gpio.h
b/arch/blackfin/include/asm/gpio.h
index 0300c6a09d5bad546a3e3805d3ec2a461b3aeb7e..1ef8417f5d277d33b1f4a0a3b650775a0f3616c5 100644
(file)
--- 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);