we have a maximum of 32 gpios
authorJohn Crispin <john@openwrt.org>
Thu, 18 Mar 2010 10:56:28 +0000 (10:56 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 18 Mar 2010 10:56:28 +0000 (10:56 +0000)
SVN-Revision: 20265

target/linux/ifxmips/files/arch/mips/include/asm/mach-ifxmips/gpio.h

index 6f05e38eace39c9986bddf1fac470fd1dceaf53d..4176bfd80920568a8d5005546b2eeee2b3a377d6 100644 (file)
@@ -99,7 +99,7 @@ static inline void gpio_set_value_cansleep(unsigned gpio, int value)
 
 static inline int gpio_is_valid(int number)
 {
-       return ((unsigned)number) < 16;
+       return ((unsigned)number) < 32;
 }
 
 #endif