regulator: Fix return value of _set_load() stub
authorMark Brown <broonie@kernel.org>
Sat, 17 Nov 2018 03:19:30 +0000 (19:19 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Dec 2019 07:51:28 +0000 (08:51 +0100)
commiteaef0135705e19f0fb6a6c584757790671aed890
tree58a3068c0e6d492b8c165de8723475eade853e75
parent94b4e528b152d24db7d92db0dfaa4f577d78be3f
regulator: Fix return value of _set_load() stub

[ Upstream commit f1abf67217de91f5cd3c757ae857632ca565099a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/regulator/consumer.h