From: MyungJoo Ham Date: Tue, 20 Jul 2010 06:07:07 +0000 (+0200) Subject: regulator: MAX8998: set_voltage bugfix. ramp_up delay and min/max voltage X-Git-Tag: v2.6.36-rc1~58^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5a4655db9e0b5e49a0b17e1bf96462e93e3c326;p=pandora-kernel.git regulator: MAX8998: set_voltage bugfix. ramp_up delay and min/max voltage Two issues are addressed for max8998_set_voltage function. 1. Min/Max Voltage. max8998_set_voltage had been using the voltage value of min ( voltage[i] >= max_vol , i ) This is corrected to use: min ( voltage[i] >= min_vol , i ) 2. Ramp Up Delay. max8998_set_voltage should provide delay for BUCK1/2 if ENRAMP is on. It reads RAMP value from ONOFF4 register to determine RAMP delay length. However, when max8998_set_voltage's new voltage is lower than the previous, we don't care because it does not deteriorate the stability. Changes since v1: - rebased onto latest regulator-for-next tree Signed-off-by: MyungJoo Ham Signed-off-by: Kyungmin Park Signed-off-by: Marek Szyprowski Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed