]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
regulator: palmas: Remove wrong comment for the equation calculating num_voltages
authorAxel Lin <axel.lin@ingics.com>
Thu, 12 Sep 2013 01:38:12 +0000 (09:38 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 16 Sep 2013 23:52:13 +0000 (00:52 +0100)
Current equation on the comment is wrong.
For linear mapping starting from 0, the equation is (maxV-minV)/stepV + 1.
Since the linear mapping for PALMAS is not all starting from 0, the equation
on the comment is not useful and misleading. Thus remove it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/palmas-regulator.c

index fba4faa422b80701c0ba8eb4fb1a0ff9648d7364..7e2b165972e6edd6e3eee6b26478cb263db5d048 100644 (file)
@@ -201,12 +201,6 @@ static unsigned int palmas_smps_ramp_delay[4] = {0, 10000, 5000, 2500};
 #define SMPS_CTRL_MODE_ECO             0x02
 #define SMPS_CTRL_MODE_PWM             0x03
 
-/* These values are derived from the data sheet. And are the number of steps
- * where there is a voltage change, the ranges at beginning and end of register
- * max/min values where there are no change are ommitted.
- *
- * So they are basically (maxV-minV)/stepV
- */
 #define PALMAS_SMPS_NUM_VOLTAGES       122
 #define PALMAS_SMPS10_NUM_VOLTAGES     2
 #define PALMAS_LDO_NUM_VOLTAGES                50