regulator: Report actual configured voltage to set_voltage()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 10 Nov 2010 14:38:29 +0000 (14:38 +0000)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 12 Jan 2011 14:32:59 +0000 (14:32 +0000)
Change the interface used by set_voltage() to report the selected value
to the regulator core in terms of a selector used by list_voltage().
This allows the regulator core to know the voltage that was chosen
without having to do an explict get_voltage(), which would be much more
expensive as it will generally access hardware.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>

No differences found