diff options
| author | 2013-03-10 17:25:29 +0100 | |
|---|---|---|
| committer | 2013-03-15 13:33:54 +0100 | |
| commit | 9fddc4a589c6d1bd9c935d445b1a1d216b1457ab (patch) | |
| tree | 7d2c00beb3508a6502384ae9b7051712f3918f8f /kernel/sysctl_binary.c | |
| parent | sh-pfc: Merge sh_pfc_reconfig_pin() into sh_pfc_gpio_set_direction() (diff) | |
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 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
