X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/7863ca9afd9dd1acb6fcd1c169c716a43c4e0dfe..9f4a7ba694b4b01a362836adcbcbdcfca9e8a3c3:/target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h 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 76d42c2e3..0dece372d 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