]> git.openfabrics.org - ~emulex/infiniband.git/commit
regulator: max8997: Use simple equation to get selector
authorAxel Lin <axel.lin@gmail.com>
Tue, 10 Apr 2012 06:20:03 +0000 (14:20 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 10 Apr 2012 09:14:01 +0000 (10:14 +0100)
commit2358b7763ee6673c0d08ddf9dcfe96e982e9b26f
tree33c69d226ba54a28222071360e4f4cd17d5fce2b
parent0fa310ccabfe9034017e1b6780052d36fbd9f38f
regulator: max8997: 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/max8997.c