From: Axel Lin Date: Wed, 11 Apr 2012 12:53:58 +0000 (+0800) Subject: regulator: Fix the logic to ensure new voltage setting in valid range X-Git-Tag: v3.4-rc7~24^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f55205f4d4a8823a11bb8b37ef2ecbd78fb09463;p=pandora-kernel.git regulator: Fix the logic to ensure new voltage setting in valid range I think this is a typo. To ensure new voltage setting won't greater than desc->max, the equation should be desc->min + desc->step * new_val <= desc->max. Signed-off-by: Axel Lin Signed-off-by: Mark Brown Cc: stable@vger.kernel.org --- Reading git-diff-tree failed