regulator: Improve WM831x DVS VSEL selection algorithm
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 25 Jul 2011 21:20:34 +0000 (22:20 +0100)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Thu, 28 Jul 2011 09:20:49 +0000 (10:20 +0100)
commit88cda60e512373ca18a663ee66dc2550800223eb
treee825ff9214a04d60611e5aad36b421f70b2aa2c0
parentc439b8f46ee79147139e124621dbc9e1e7804655
regulator: Improve WM831x DVS VSEL selection algorithm

Rather than using the maximum voltage we get passed to select the DVS
voltage to use remember the highest voltage we've ever seen. This improves
how the driver works when the consumer permits higher voltages than it
will ever selects in order to support the widest possible voltage range.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/wm831x-dcdc.c