]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit587a64df15ce063aad696750a82d4ce7fc773816
treecdc7b4161bef5aa90a9f375229dc3dc61900ea6c
parent096cb39f2556e9734dd0fe1d13632e37f134187d
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