diff options
author | Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> | 2019-04-22 19:28:24 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-03 08:34:26 +0200 |
commit | 498209445124920b365ef43aac93d6f1acbaa1b7 (patch) | |
tree | d7a5715e59fd8170dc4a3122f3938e165b3755b9 /drivers/pinctrl/mediatek/pinctrl-mtk-mt8135.h | |
parent | regulator: da9xxx: Switch to SPDX identifier (diff) | |
download | linux-498209445124920b365ef43aac93d6f1acbaa1b7.tar.xz linux-498209445124920b365ef43aac93d6f1acbaa1b7.zip |
regulator: core: simplify return value on suported_voltage
All the current clients of this API assume that 0 corresponds
to a failure and non-zero to a pass therefore ignoring the need to
handle a negative error code.
This commit modifies the API to follow that standard since returning a
negative (EINVAL) doesn't seem to provide enough value to justify
the need to handle it.
Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/pinctrl/mediatek/pinctrl-mtk-mt8135.h')
0 files changed, 0 insertions, 0 deletions