commit | bca7bbfff37808d56355bbcf0ceec34f0cc6c85d | [log] [tgz] |
---|---|---|
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | Wed May 09 21:38:33 2012 +0100 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Sat May 12 11:11:32 2012 +0100 |
tree | 2ad595ab595a404b8082b01696fc152de95a10b2 | |
parent | e843fc4616485bbd8b5a115f5bd4f73808656373 [diff] |
regulator: core: Allow drivers to set simple linear voltage maps as data A lot of regulator hardware maps selectors on to voltages with a simple linear mapping function selector = base + (selector * step size) Provide off the shelf list_voltage() and map_voltage() operations which use new min_uV and uV_step members in the regulator_desc to implement this function. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com>