mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
add gpio_is_valid(); ifxmips, mmc_gpio was not building correctly
SVN-Revision: 12704
This commit is contained in:
parent
d0302d323b
commit
d58b9ba0d0
@ -86,5 +86,9 @@ static inline void gpio_set_value_cansleep(unsigned gpio, int value) {
|
|||||||
gpio_set_value(gpio, value);
|
gpio_set_value(gpio, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
static inline int gpio_is_valid(int number)
|
||||||
|
{
|
||||||
|
return ((unsigned)number) < 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user