]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: qcom: add get_direction function
authorTimur Tabi <timur@codeaurora.org>
Fri, 10 Feb 2017 23:21:00 +0000 (17:21 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 6 Mar 2017 13:38:05 +0000 (14:38 +0100)
commit973188ccbfbc1d394b00f7de926a5363131438fb
tree02b1881346ea5ecfd25eafb2e07c38c9849b15f5
parent94e2a518d0ac4a168bccd1446b1a1407458c45bd
pinctrl: qcom: add get_direction function

The get_direction callback function allows gpiolib to know the current
direction (input vs output) for a given GPIO.

This is particularly useful on ACPI systems, where the GPIOs are
configured only by firmware (typically UEFI), so the only way to
know the initial values to query the hardware directly.  Without
this function, gpiolib thinks that all GPIOs are configured for
input.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-msm.c