regulator: devres: fix devm_regulator_get_enable_read_voltage() return
authorDavid Lechner <dlechner@baylibre.com>
Mon, 6 May 2024 15:59:15 +0000 (10:59 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 7 May 2024 01:31:47 +0000 (10:31 +0900)
commit257b2335eebf51e318db1f3b2d023512da46fa66
tree2081297bc40b2bc515120d160b8597dd815f66b3
parent48b6faae69a432b76e453c73ff5210bf5affa936
regulator: devres: fix devm_regulator_get_enable_read_voltage() return

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: b250c20b6429 ("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>
drivers/regulator/devres.c