From: Axel Lin Date: Tue, 27 Mar 2012 07:17:26 +0000 (+0800) Subject: regulator: wm831x-dcdc: Fix the logic to choose best current limit setting X-Git-Tag: v3.4-rc2~22^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a171e782a97d4ba55d7fa02f9a46904288b2c229;p=pandora-kernel.git regulator: wm831x-dcdc: Fix the logic to choose best current limit setting Current code in wm831x_buckv_set_current_limit actually set the current limit setting greater than specified range. Fix the logic in wm831x_buckv_set_current_limit to choose the smallest current limit setting falls within the specified range. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed