linux/drivers/pinctrl/sh-pfc
Laurent Pinchart caa5bac3b4 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 <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
2013-03-15 13:33:37 +01:00
..
core.c sh-pfc: Replace SoC info data and mark ranges with a number of pins 2013-03-15 13:33:37 +01:00
core.h sh-pfc: Move sh_pfc.h from include/linux/ to driver directory 2013-01-25 09:24:31 +09:00
gpio.c sh-pfc: Replace first_gpio and last_gpio with nr_gpios 2013-03-15 13:33:36 +01:00
Kconfig sh-pfc: Add shx3 pinmux support 2013-01-25 09:24:28 +09:00
Makefile sh-pfc: Add shx3 pinmux support 2013-01-25 09:24:28 +09:00
pfc-r8a7740.c sh-pfc: Replace SoC info data and mark ranges with a number of pins 2013-03-15 13:33:37 +01:00
pfc-r8a7779.c sh-pfc: Replace SoC info data and mark ranges with a number of pins 2013-03-15 13:33:37 +01:00
pfc-sh73a0.c sh-pfc: Replace SoC info data and mark ranges with a number of pins 2013-03-15 13:33:37 +01:00
pfc-sh7203.c sh-pfc: Replace SoC info data and mark ranges with a number of pins 2013-03-15 13:33:37 +01:00
pfc-sh7264.c sh-pfc: Replace SoC info data and mark ranges with a number of pins 2013-03-15 13:33:37 +01:00
pfc-sh7269.c sh-pfc: Replace SoC info data and mark ranges with a number of pins 2013-03-15 13:33:37 +01:00
pfc-sh7372.c sh-pfc: Replace SoC info data and mark ranges with a number of pins 2013-03-15 13:33:37 +01:00
pfc-sh7720.c sh-pfc: Replace SoC info data and mark ranges with a number of pins 2013-03-15 13:33:37 +01:00
pfc-sh7722.c sh-pfc: Replace SoC info data and mark ranges with a number of pins 2013-03-15 13:33:37 +01:00
pfc-sh7723.c sh-pfc: Replace SoC info data and mark ranges with a number of pins 2013-03-15 13:33:37 +01:00
pfc-sh7724.c sh-pfc: Replace SoC info data and mark ranges with a number of pins 2013-03-15 13:33:37 +01:00
pfc-sh7734.c sh-pfc: Replace SoC info data and mark ranges with a number of pins 2013-03-15 13:33:37 +01:00
pfc-sh7757.c sh-pfc: Replace SoC info data and mark ranges with a number of pins 2013-03-15 13:33:37 +01:00
pfc-sh7785.c sh-pfc: Replace SoC info data and mark ranges with a number of pins 2013-03-15 13:33:37 +01:00
pfc-sh7786.c sh-pfc: Replace SoC info data and mark ranges with a number of pins 2013-03-15 13:33:37 +01:00
pfc-shx3.c sh-pfc: Replace SoC info data and mark ranges with a number of pins 2013-03-15 13:33:37 +01:00
pinctrl.c sh-pfc: Replace first_gpio and last_gpio with nr_gpios 2013-03-15 13:33:36 +01:00
sh_pfc.h sh-pfc: Replace SoC info data and mark ranges with a number of pins 2013-03-15 13:33:37 +01:00