diff options
| author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-04 22:05:47 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-09 12:36:56 +0100 |
| commit | f094fea68f0575286c55c06141cc89ffd0049024 (patch) | |
| tree | 6e6ff489fd8e445ff3b1e1a33e7488395d841e1b /tools/perf/scripts/python | |
| parent | regmap: Fix doc comment (diff) | |
| download | linux-f094fea68f0575286c55c06141cc89ffd0049024.tar.gz linux-f094fea68f0575286c55c06141cc89ffd0049024.zip | |
regmap: Use bsearch() to search the register defaults
Rather than open coding a binary search use the standard bsearch() using
the comparison function we're already using for sort() on insert. This
fixes a lockup I was observing due to iterating on min <= max rather
than min < max when we fail to look up.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
