]> git.karo-electronics.de Git - karo-tx-linux.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>
Fri, 17 Aug 2012 22:00:59 +0000 (23:00 +0100)
commitcaaaa4f4a7f97c9578085c941b537bfd5810f2e9
tree36842723dd42a54b6837fd237f426a47c291c16e
parentd299229b045e9e47c87d29bb32ce0f5be4db2c79
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