summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-08-17 02:46:51 (GMT)
committerMark Brown <broonie@kernel.org>2015-08-17 19:54:01 (GMT)
commit30f93ca8323f0c21b789bea0f7db8e8e3a7915c6 (patch)
tree4c89400bb45b766231b2359c36d40417b85e438d /drivers/regulator
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590 (diff)
downloadlinux-30f93ca8323f0c21b789bea0f7db8e8e3a7915c6.tar.xz
regulator: core: Define regulator_set_voltage_triplet()
Voltage tolerance isn't necessarily same on both sides of the target voltage and regulator_set_voltage_tol() wouldn't be suitable in such cases. Add another routine regulator_set_voltage_triplet(), which accepts target, min and max voltages as arguments. This first tries to set the voltage between the target voltage and the upper limit, then fall back on the full range. The idea behind this is to set regulator's voltage as close to the target voltage, as possible. Based on regulator_set_voltage_tol(). Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
0 files changed, 0 insertions, 0 deletions