From: Laurent Pinchart Date: Sun, 10 Mar 2013 16:25:29 +0000 (+0100) Subject: sh-pfc: Clean up pin configuration type handling X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~46^2^2~90 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fddc4a589c6d1bd9c935d445b1a1d216b1457ab;p=pandora-kernel.git 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 Acked-by: Linus Walleij --- Reading git-diff-tree failed