]> Pileus Git - ~andy/linux/commit
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)
commit2e42a7dc407163dd99ab5741b6fd167877708623
tree0d25b62ca62fc39cdb29b731ffdf91e93ff3f996
parent2358b7763ee6673c0d08ddf9dcfe96e982e9b26f
regulator: max8998: Use simple equation to get selector

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