regulator: max8998: Use simple equation to get selector
authorAxel Lin <axel.lin@gmail.com>
Tue, 10 Apr 2012 06:21:01 +0000 (14:21 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 10 Apr 2012 09:14:01 +0000 (10:14 +0100)
It's more efficient to get the best selector by simple equation.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/max8998.c

Simple merge