Skip to content

Commit e8c5c6d

Browse files
committed
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: Bob Liu <[email protected]>
1 parent 95fc2d8 commit e8c5c6d

File tree

1 file changed

+12
-2
lines changed
  • arch/blackfin/include/asm

1 file changed

+12
-2
lines changed

arch/blackfin/include/asm/gpio.h

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,16 +244,26 @@ static inline int gpio_set_debounce(unsigned gpio, unsigned debounce)
244244
return -EINVAL;
245245
}
246246

247-
static inline int gpio_get_value(unsigned gpio)
247+
static inline int __gpio_get_value(unsigned gpio)
248248
{
249249
return bfin_gpio_get_value(gpio);
250250
}
251251

252-
static inline void gpio_set_value(unsigned gpio, int value)
252+
static inline void __gpio_set_value(unsigned gpio, int value)
253253
{
254254
return bfin_gpio_set_value(gpio, value);
255255
}
256256

257+
static inline int gpio_get_value(unsigned gpio)
258+
{
259+
return __gpio_get_value(gpio);
260+
}
261+
262+
static inline void gpio_set_value(unsigned gpio, int value)
263+
{
264+
return __gpio_set_value(gpio, value);
265+
}
266+
257267
static inline int gpio_to_irq(unsigned gpio)
258268
{
259269
if (likely(gpio < MAX_BLACKFIN_GPIOS))

0 commit comments

Comments
 (0)