From: Laurent Pinchart Date: Thu, 29 Nov 2012 01:23:26 +0000 (+0100) Subject: sh-pfc: Initialize pinmux_gpio flags statically X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~46^2^2~132 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=380c2ed92412d519c71d8c270d6b073b2c5bfdec;p=pandora-kernel.git sh-pfc: Initialize pinmux_gpio flags statically All function GPIO entries are initialized with the GPIO_FN macro that expands to the PINMUX_GPIO macro, used to initialize real GPIOs. Create a PINMUX_GPIO_FN macro that duplicates PINMUX_GPIO and sets flags to PINMUX_TYPE_FUNCTION and use it in GPIO_FN, and make PINMUX_GPIO set flags to PINMUX_TYPE_GPIO. This removes the need to initialize GPIO flags at runtime and thus simplifies the code, preparing for the GPIO and functions split. Signed-off-by: Laurent Pinchart Acked-by: Linus Walleij --- Reading git-diff-tree failed