regulator: Allow drivers to report voltages as selectors
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 10 Dec 2010 17:28:07 +0000 (17:28 +0000)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 12 Jan 2011 14:33:01 +0000 (14:33 +0000)
commit476c2d83c7ffb2429b2a504fbdb4326fc8a9d0e8
treecdc7b4161bef5aa90a9f375229dc3dc61900ea6c
parent1bf5a1f86a328122714680cd59951074b4f31e07
regulator: Allow drivers to report voltages as selectors

Since drivers already have to provide an API for translating selectors
into voltages they may as well just report the selector values directly
to the core API rather than implement the lookup themselves. The old
interface is left in place for now, but may be removed in future.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/core.c
include/linux/regulator/driver.h