projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add gpio_is_valid(); ifxmips, mmc_gpio was not building correctly
[openwrt.git]
/
target
/
linux
/
ifxmips
/
files
/
include
/
asm-mips
/
mach-ifxmips
/
gpio.h
diff --git
a/target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h
b/target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h
index
76d42c2
..
0dece37
100644
(file)
--- a/
target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h
+++ b/
target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h
@@
-86,5
+86,9
@@
static inline void gpio_set_value_cansleep(unsigned gpio, int value) {
gpio_set_value(gpio, value);
}
-#endif
+static inline int gpio_is_valid(int number)
+{
+ return ((unsigned)number) < 8;
+}
+#endif
This page took
0.022673 seconds
and
4
git commands to generate.