diff options
author | John Crispin <john@openwrt.org> | 2008-09-25 16:27:54 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2008-09-25 16:27:54 +0000 |
commit | d58b9ba0d0106346328442a9d76b3ea8c498b1ac (patch) | |
tree | 1000cefb2accb9606695be3aff92d2795687ed25 /target/linux | |
parent | d0302d323b81940154e16372b753a7f442e26ce6 (diff) | |
download | mtk-20170518-d58b9ba0d0106346328442a9d76b3ea8c498b1ac.zip mtk-20170518-d58b9ba0d0106346328442a9d76b3ea8c498b1ac.tar.gz mtk-20170518-d58b9ba0d0106346328442a9d76b3ea8c498b1ac.tar.bz2 |
add gpio_is_valid(); ifxmips, mmc_gpio was not building correctly
SVN-Revision: 12704
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 --- 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 |