-static inline int get_gpio_bit(gpio_func ofs, struct cf_mips_dev *dev)
-{
- return (gpio_get(ofs) >> dev->pin) & 1;
-}
-
-static inline void set_gpio_bit(int bit, gpio_func ofs, struct cf_mips_dev *dev)
-{
- gpio_set(ofs, (1 << dev->pin), ((bit & 1) << dev->pin));
-}
-