]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit41c35448314355d6599d539617a2ab29bb531244
tree2989d81ca80feb1d48a4afd38d92e0a4ff3a3f28
parentc9237d085fe2b32752265280a623519a6ef77bad
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