]> git.karo-electronics.de Git - linux-beck.git/commit
regulator: core: Factor out regulator_map_voltage
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 20 Oct 2015 12:37:27 +0000 (14:37 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 20 Oct 2015 14:43:53 +0000 (15:43 +0100)
commita204f41e2d670c07c4dbd382d5bd8f6db8347ac2
tree9f3ea6b39c92184c7c098ce43ff04c0597eb95f5
parenta9f226bcd9bb1941e581806e83d2c03d4043c367
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>
drivers/regulator/core.c