gpio: pisosr: Use gpiod_set_value_cansleep in pisosr_gpio_refresh()
authorAxel Lin <axel.lin@ingics.com>
Wed, 24 Feb 2016 13:31:14 +0000 (21:31 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 25 Feb 2016 14:20:46 +0000 (15:20 +0100)
commitea04a7cae32108624af55d84845e8f4d21c9cb34
tree50090a9640f7464b9aaf39316b2847768224b32a
parent21d08ab9c9d8dc17ee650b28cea8b3175065e201
gpio: pisosr: Use gpiod_set_value_cansleep in pisosr_gpio_refresh()

This driver has .can_sleep flag set.
So the pisosr_gpio_get() can be called from contexts that can sleep.
Thus use the cansleep() variant in pisosr_gpio_refresh().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pisosr.c