From: Mark Brown Date: Tue, 4 Oct 2011 21:05:47 +0000 (+0100) Subject: regmap: Use bsearch() to search the register defaults X-Git-Tag: v3.2-rc1~181^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f094fea68f0575286c55c06141cc89ffd0049024;p=pandora-kernel.git 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 Acked-by: Dimitris Papastamos --- Reading git-diff-tree failed