commit | a204f41e2d670c07c4dbd382d5bd8f6db8347ac2 | [log] [tgz] |
---|---|---|
author | Sascha Hauer <s.hauer@pengutronix.de> | Tue Oct 20 14:37:27 2015 +0200 |
committer | Mark Brown <broonie@kernel.org> | Tue Oct 20 15:43:53 2015 +0100 |
tree | 9f3ea6b39c92184c7c098ce43ff04c0597eb95f5 | |
parent | a9f226bcd9bb1941e581806e83d2c03d4043c367 [diff] |
regulator: core: Factor out regulator_map_voltage _regulator_call_set_voltage has code to translate a minimum/maximum voltage pair into a selector. This code is useful for others aswell, so create a regulator_map_voltage function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Mark Brown <broonie@kernel.org>