From: Laxman Dewangan Date: Fri, 3 Feb 2012 07:24:38 +0000 (+0530) Subject: regulator: twl6030: Fix voltage selection logic X-Git-Tag: v3.4-rc1~168^2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a33b6e5a8fb5fadeef206bacef13117e8a3080c4;p=pandora-kernel.git regulator: twl6030: Fix voltage selection logic The voltage selection logic for the twl6030 smps fails if min:max is such that min < 1300mV and max > 1300mV although this is in valid range for a regulator e.g. [x, 1350] where x < 1300. Fixing the voltage selection logic such that first it will check for min_uV for a range and then calculated value will be checked against max_uV. Signed-off-by: Laxman Dewangan Signed-off-by: Mark Brown --- Reading git-diff-tree failed