From: Axel Lin Date: Tue, 27 Mar 2012 07:20:08 +0000 (+0800) Subject: regulator: wm8350: Fix the logic to choose best current limit setting X-Git-Tag: v3.4-rc2~22^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a744038b3709cd467b693f3e146c6d5b8120a18;p=pandora-kernel.git regulator: wm8350: Fix the logic to choose best current limit setting Current implementation in get_isink_val actually choose the biggest current limit setting falls within the specified range. What we want is to choose the smallest current limit setting falls within the specified range. Fix it. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed