Skip to content

Commit eb9ae7f

Browse files
hamoglikely
authored andcommitted
gpio: fix build error in include/asm-generic/gpio.h
Should call the platform-specific __gpio_{get,set}_value instead of generic gpio_{get,set}_value Signed-off-by: Yang Bai <hamo.by@gmail.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
1 parent feb8369 commit eb9ae7f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/asm-generic/gpio.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@ static inline int gpio_cansleep(unsigned gpio)
209209
static inline int gpio_get_value_cansleep(unsigned gpio)
210210
{
211211
might_sleep();
212-
return gpio_get_value(gpio);
212+
return __gpio_get_value(gpio);
213213
}
214214

215215
static inline void gpio_set_value_cansleep(unsigned gpio, int value)
216216
{
217217
might_sleep();
218-
gpio_set_value(gpio, value);
218+
__gpio_set_value(gpio, value);
219219
}
220220

221221
#endif /* !CONFIG_GPIOLIB */

0 commit comments

Comments
 (0)