pinctrl: lynxpoint: Implement intel_gpio_get_direction callback
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 19 Nov 2019 15:36:48 +0000 (17:36 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 13 Dec 2019 14:48:48 +0000 (16:48 +0200)
commit54d371cf73d9029a6adade3ec9423653d7790ef0
tree2989d81ca80feb1d48a4afd38d92e0a4ff3a3f28
parent5931e6edfdd01c97b4cf8354e68f74df97580e49
pinctrl: lynxpoint: Implement intel_gpio_get_direction callback

Allows querying GPIO direction from the pad config register.
If the pad is not in GPIO mode, return an error.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pinctrl/intel/pinctrl-lynxpoint.c