gpiolib: Consistent use of ->get_direction() inside gpiolib
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 9 Jul 2018 18:47:21 +0000 (21:47 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 13 Jul 2018 07:01:46 +0000 (09:01 +0200)
commit809567905b5f10f73828b3fab3024bfaaf967f32
tree3f48fdf55d107dd1e6c5c27545987c291a10dfb9
parentb23ec59926faf05b0c43680d05671c484e810ac4
gpiolib: Consistent use of ->get_direction() inside gpiolib

Two out of three calls to ->get_direction (excluding, of course,
gpiod_get_direction() itself) are using gpiod_get_direction() and
one is still open coded.

Replace the latter one to use same API for sake of consistency.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c