diff options
author | Chanho Park <[email protected]> | 2012-01-03 16:47:50 +0900 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2012-01-03 09:10:09 +0100 |
commit | 706e8520e8450a631ca6f798f8c811faf56f0a59 (patch) | |
tree | 68b0f77fc1f3b92be3e905e36f14e184403d0b67 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | e6337c3c96a7ee5cfd5e7afed825f894d4576f58 (diff) |
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 <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
[Restored sparse pin space comment]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions