mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
regulator: devres: fix devm_regulator_get_enable_read_voltage() return
commit257b2335eeupstream. The devm_regulator_get_enable_read_voltage() function is supposed to return the voltage that the regulator is currently set to. However, it currently returns 0. Fixes:b250c20b64("regulator: devres: add API for reference voltage supplies") Signed-off-by: David Lechner <dlechner@baylibre.com> Link: https://lore.kernel.org/r/20240506-regulator-devm_regulator_get_enable_read_voltage-fixes-v1-1-356cdd152067@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2ee4194be0
commit
1a9e400a19
@@ -193,7 +193,7 @@ int devm_regulator_get_enable_read_voltage(struct device *dev, const char *id)
|
||||
if (ret < 0)
|
||||
goto err_release_action;
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
|
||||
err_release_action:
|
||||
devm_release_action(dev, regulator_action_disable, r);
|
||||
|
||||
Reference in New Issue
Block a user