]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
commitae3e101286df40cdde49c4737e2868289ed7f35b
tree8c6076bb9a156772bafc3894c1c66fee47029c1e
parent087d30e3049bf86909895ef227f0893b8f710f38
regulator: palmas: Remove wrong comment for the equation calculating num_voltages

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