diff options
author | Joonwoo Park <joonwoop@codeaurora.org> | 2016-09-19 14:46:54 -0700 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-24 19:36:41 +0100 |
commit | 577766175c40d4f425be47b9e70d80238e53f996 (patch) | |
tree | 27085b73567bfb76e2e2ff56299b6ba44766a2ae /certs | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) |
regulator: core: don't return error with inadequate reason
drms_uA_update() always returns failure when it cannot find regulator's
input voltage. But if hardware supports load configuration with
ops->set_load() and the input regulator isn't specified with valid reason
such as the input regulator is battery, not finding input voltage is
normal so such case should not return with an error.
Avoid such inadequate error return by checking input/output voltages
only when drms_uA_update() is about to configure load with enum based
ops->set_mode().
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions