commit | 108d23e322a247d9f89ba2e2742520ead0944cc9 | [log] [tgz] |
---|---|---|
author | Timur Tabi <timur@codeaurora.org> | Thu Jul 27 13:19:23 2017 -0500 |
committer | Linus Walleij <linus.walleij@linaro.org> | Mon Aug 14 15:01:12 2017 +0200 |
tree | b11bd287e24c911d7e1b048de232a02431c43259 | |
parent | b2dc4110cbf83be72e8bdf75bcf88831bf7dd0fe [diff] |
gpiolib: request the gpio before querying its direction Before querying a GPIO to determine its direction, the GPIO should be formally requested. This allows the GPIO driver to block access to unavailable GPIOs, which makes it easier for some drivers to support sparse GPIO maps. Signed-off-by: Timur Tabi <timur@codeaurora.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>