From: Axel Lin Date: Tue, 27 Mar 2012 07:18:53 +0000 (+0800) Subject: regulator: wm831x-isink: Fix the logic to choose best current limit setting X-Git-Tag: v3.4-rc2~22^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed3be9a0e3c1050fe07d69a8c600d86cac76cdc4;p=pandora-kernel.git regulator: wm831x-isink: Fix the logic to choose best current limit setting Current code in wm831x_isink_set_current actually set the current limit setting smaller than specified range. Fix the logic in wm831x_isink_set_current 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