linux/drivers/pinctrl
Chanho Park 706e8520e8 pinctrl: correct a offset while enumerating pins
This patch modifies a offset while enumerating pins to support a
partial pin space. If we use a pin number for enumerating pins,
the pin space always starts with zero base. Indeed, we always check
the pin is in the pin space. An extreme example, there is only two pins.
One is 0. Another is 1000. We always enumerate whole offsets until 1000.
For solving this problem, we use the offset of the pin array instead
of the zero-based pin number.

Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
[Restored sparse pin space comment]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2012-01-03 09:10:09 +01:00
..
core.c pinctrl: correct a offset while enumerating pins 2012-01-03 09:10:09 +01:00
core.h pinctrl: conjure names for unnamed pins 2012-01-03 09:10:06 +01:00
Kconfig pinctrl: rename U300 and SIRF pin controllers 2012-01-03 09:10:08 +01:00
Makefile pinctrl: rename U300 and SIRF pin controllers 2012-01-03 09:10:08 +01:00
pinconf.c pinctrl: correct a offset while enumerating pins 2012-01-03 09:10:09 +01:00
pinconf.h pinctrl: add a pin config interface 2012-01-03 09:10:04 +01:00
pinctrl-coh901.c pinctrl/coh901: driver to request its pins 2012-01-03 09:10:04 +01:00
pinctrl-sirf.c pinctrl: rename U300 and SIRF pin controllers 2012-01-03 09:10:08 +01:00
pinctrl-u300.c pinctrl: rename U300 and SIRF pin controllers 2012-01-03 09:10:08 +01:00
pinmux.c pinctrl: correct a offset while enumerating pins 2012-01-03 09:10:09 +01:00
pinmux.h drivers: create a pin control subsystem 2011-10-13 12:49:17 +02:00