linux/drivers/pinctrl/sh-pfc
Laurent Pinchart 9fddc4a589 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>
2013-03-15 13:33:54 +01:00
..
core.c sh-pfc: Use proper error codes 2013-03-15 13:33:54 +01:00
core.h sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
gpio.c sh-pfc: Use proper error codes 2013-03-15 13:33:54 +01:00
Kconfig sh-pfc: Implement generic pinconf support 2013-03-15 13:33:54 +01:00
Makefile sh-pfc: Add shx3 pinmux support 2013-01-25 09:24:28 +09:00
pfc-r8a7740.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-r8a7779.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh73a0.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7203.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7264.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7269.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7372.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7720.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7722.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7723.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7724.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7734.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7757.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7785.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-sh7786.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pfc-shx3.c sh-pfc: Constify all SoC data 2013-03-15 13:33:53 +01:00
pinctrl.c sh-pfc: Clean up pin configuration type handling 2013-03-15 13:33:54 +01:00
sh_pfc.h sh-pfc: Implement generic pinconf support 2013-03-15 13:33:54 +01:00