From bfc60400d5930cd4c9d5619435763a383c53a072 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 25 Sep 2008 16:27:54 +0000 Subject: [PATCH] add gpio_is_valid(); ifxmips, mmc_gpio was not building correctly SVN-Revision: 12704 --- .../ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 76d42c2e3b..0dece372d1 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 -- 2.30.2