From: Laurent Pinchart Date: Thu, 29 Nov 2012 11:24:51 +0000 (+0100) Subject: sh-pfc: Replace SoC info data and mark ranges with a number of pins X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~46^2^2~134 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caa5bac3b4749ae3dca1db33d648280197f91a56;p=pandora-kernel.git sh-pfc: Replace SoC info data and mark ranges with a number of pins The data and mark ranges are only used to check whether a GPIO corresponds to a real pin or a function. As pins come first in the list of GPIOs and in the platform-specific GPIO enumerations, we can replace the data and mark ranges by a number of pins. Add an nr_pins field to struct sh_pfc_soc_info to store the number of pins implemented by the SoC, remove the data and mark range fields and introduce sh_pfc_gpio_is_pin() and sh_pfc_gpio_is_function() functions to replace range-based checks. Signed-off-by: Laurent Pinchart Acked-by: Linus Walleij --- Reading git-diff-tree failed