Commit e8c5c6da authored by Bob Liu's avatar Bob Liu

blackfin: gpio: fix compile error if !CONFIG_GPIOLIB

Add __gpio_get_value()/__gpio_set_value() to fix compile error if
CONFIG_GPIOLIB = n.
Signed-off-by: default avatarBob Liu <lliubbo@gmail.com>
parent 95fc2d8f
...@@ -244,16 +244,26 @@ static inline int gpio_set_debounce(unsigned gpio, unsigned debounce) ...@@ -244,16 +244,26 @@ static inline int gpio_set_debounce(unsigned gpio, unsigned debounce)
return -EINVAL; return -EINVAL;
} }
static inline int gpio_get_value(unsigned gpio) static inline int __gpio_get_value(unsigned gpio)
{ {
return bfin_gpio_get_value(gpio); return bfin_gpio_get_value(gpio);
} }
static inline void gpio_set_value(unsigned gpio, int value) static inline void __gpio_set_value(unsigned gpio, int value)
{ {
return bfin_gpio_set_value(gpio, value); return bfin_gpio_set_value(gpio, value);
} }
static inline int gpio_get_value(unsigned gpio)
{
return __gpio_get_value(gpio);
}
static inline void gpio_set_value(unsigned gpio, int value)
{
return __gpio_set_value(gpio, value);
}
static inline int gpio_to_irq(unsigned gpio) static inline int gpio_to_irq(unsigned gpio)
{ {
if (likely(gpio < MAX_BLACKFIN_GPIOS)) if (likely(gpio < MAX_BLACKFIN_GPIOS))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment