From: Chanho Park Date: Tue, 3 Jan 2012 07:47:50 +0000 (+0900) Subject: pinctrl: correct a offset while enumerating pins X-Git-Tag: v3.3-rc1~127^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=706e8520e8450a631ca6f798f8c811faf56f0a59;p=pandora-kernel.git 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 Signed-off-by: Kyungmin Park [Restored sparse pin space comment] Signed-off-by: Linus Walleij --- Reading git-diff-tree failed