]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pinctrl: indicate GPIO direction on single GPIO request
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Nov 2011 09:06:22 +0000 (10:06 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 17 Nov 2011 13:39:39 +0000 (14:39 +0100)
commitfb1b0ee678bd67d09e22653243e82de35a5e255c
treef013c484d1d0a619a3099fa679b9cd757c67adba
parent2b47ac616cb2f7366572bff9cc785e988f2d06f3
pinctrl: indicate GPIO direction on single GPIO request

When requesting a single GPIO pin to be muxed in, some controllers
will need to poke a different value into the control register
depending on whether the pin will be used for GPIO output or GPIO
input. So pass this info along for the gpio_request_enable()
function, we assume this is not needed for the gpio_free_disable()
function for the time being.

ChangeLog V1->V2:
- This also amends the documentation to make it clear the this
  function and associated machinery is *ONLY* intended as a backend
  to gpiolib machinery, not for everyone and his dog to start playing
  around with pins.

Suggested-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/pinctrl.txt
drivers/pinctrl/pinmux.c
include/linux/pinctrl/pinmux.h