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)
commit8e51533780ba223a3562ff4382c6b6f350c7e9a4
tree02b1881346ea5ecfd25eafb2e07c38c9849b15f5
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201
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