[ifxmips] we have a maximum of 32 gpios
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 18 Mar 2010 10:56:28 +0000 (10:56 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 18 Mar 2010 10:56:28 +0000 (10:56 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20265 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 6f05e38..4176bfd 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
This page took 0.027379 seconds and 4 git commands to generate.