summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sh-pfc/gpio.c
diff options
context:
space:
mode:
authorLaurent Pinchart2013-03-10 17:25:29 +0100
committerLaurent Pinchart2013-03-15 13:33:54 +0100
commit9fddc4a589c6d1bd9c935d445b1a1d216b1457ab (patch)
tree7d2c00beb3508a6502384ae9b7051712f3918f8f /drivers/pinctrl/sh-pfc/gpio.c
parentsh-pfc: Merge sh_pfc_reconfig_pin() into sh_pfc_gpio_set_direction() (diff)
downloadkernel-qcow2-linux-9fddc4a589c6d1bd9c935d445b1a1d216b1457ab.tar.gz
kernel-qcow2-linux-9fddc4a589c6d1bd9c935d445b1a1d216b1457ab.tar.xz
kernel-qcow2-linux-9fddc4a589c6d1bd9c935d445b1a1d216b1457ab.zip
sh-pfc: Clean up pin configuration type handling
Set pin configuration type to - PINMUX_TYPE_NONE at initialization time and when disabling a function or freeing a GPIO - PINMUX_TYPE_FUNCTION when enabling a function - PINMUX_TYPE_INPUT or PINMUX_TYPE_OUTPUT when setting the GPIO direction Verify that the type is PINMUX_TYPE_NONE when enabling a function or requesting a GPIO and return -EBUSY if it isn't. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/gpio.c')
0 files changed, 0 insertions, 0 deletions