regulator: qcom_spmi: Fix calculating number of voltages
authorAxel Lin <axel.lin@ingics.com>
Thu, 18 Jun 2015 00:50:39 +0000 (08:50 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 19 Jun 2015 15:28:17 +0000 (16:28 +0100)
commit419d06a1cf58d9b99b25b5f578418b80070043a3
tree41f0419998d2d4d88905bf9cd04c166ca1d71beb
parent9b2dfee3954e0b38a6a1b5305edd375defa8ad97
regulator: qcom_spmi: Fix calculating number of voltages

n /= range->step_uV + 1; is equivalent to n /= (range->step_uV + 1);
which is wrong. Fix it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/qcom_spmi-regulator.c