]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: max8907: Fix n_voltages for MAX8907B SD1
authorAxel Lin <axel.lin@gmail.com>
Thu, 16 Aug 2012 04:26:02 +0000 (12:26 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 28 Aug 2012 18:00:28 +0000 (11:00 -0700)
commit1d4f45520e7f6f732537d36ee86a585f482db37e
tree30ebe6fc1e2452b298ea6a5f8e568690d76cb0f1
parentc6a755a49fcab16fdf22f570fcf3686b86897b2c
regulator: max8907: Fix n_voltages for MAX8907B SD1

For linear voltage mapping, the n_voltages is (max - min) / step + 1

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/max8907-regulator.c