regulator: core: Allow regulator_set_voltage for fixed regulators
authorBjorn Andersson <bjorn@kryo.se>
Wed, 5 Feb 2014 20:30:26 +0000 (12:30 -0800)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:21:37 +0000 (09:21 +0900)
commite55e95755922ecbd12d5229698bc39922d815244
treee7f91a763e9ba3594bfe94ce786d08204fe6b7b9
parentf34b0f0cfaae358872dcb9b82dcee156f2910ab6
regulator: core: Allow regulator_set_voltage for fixed regulators

Make it okay to call regulator_set_voltage on regulators with fixed
voltage if the requested range overlaps the current/configured voltage.

Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit c00dc359e5e0b10de993651d8e73e60c41bf29cd)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
(cherry picked from commit d5c3595331d512c6af6b636cef687421c2ba11e3)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/regulator/core.c