]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib: request the gpio before querying its direction
authorTimur Tabi <timur@codeaurora.org>
Thu, 27 Jul 2017 18:19:23 +0000 (13:19 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Aug 2017 13:01:12 +0000 (15:01 +0200)
commitfa7a9a6f2d670a5593bdb2c8421ee0ee22275153
treeb11bd287e24c911d7e1b048de232a02431c43259
parent7d0716093ad7afe2371d23fd701bfeae0e605c2e
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>
drivers/gpio/gpiolib.c