diff options
author | Mark Brown <broonie@kernel.org> | 2018-11-17 06:19:30 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-11-20 18:22:46 +0300 |
commit | f1abf67217de91f5cd3c757ae857632ca565099a (patch) | |
tree | 72ac4b3195e01e6e30e80cc9ca3826de970f8b6a /include/linux/regulator/consumer.h | |
parent | 9cce72448364675ed5d4c793cf546023c003fdd6 (diff) | |
download | linux-f1abf67217de91f5cd3c757ae857632ca565099a.tar.xz |
regulator: Fix return value of _set_load() stub
The stub implementation of _set_load() returns a mode value which is
within the bounds of valid return codes for success (the documentation
just says that failures are negative error codes) but not sensible or
what the actual implementation does. Fix it to just return 0.
Reported-by: Cheng-Yi Chiang <cychiang@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regulator/consumer.h')
-rw-r--r-- | include/linux/regulator/consumer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index 25602afd4844..f3f76051e8b0 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h @@ -508,7 +508,7 @@ static inline int regulator_get_error_flags(struct regulator *regulator, static inline int regulator_set_load(struct regulator *regulator, int load_uA) { - return REGULATOR_MODE_NORMAL; + return 0; } static inline int regulator_allow_bypass(struct regulator *regulator, |