add gpio_is_valid(); ifxmips, mmc_gpio was not building correctly
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 25 Sep 2008 16:27:54 +0000 (16:27 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 25 Sep 2008 16:27:54 +0000 (16:27 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12704 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 76d42c2..0dece37 100644 (file)
@@ -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.025627 seconds and 4 git commands to generate.