regulator: max597x: Fix error return code in max597x_get_status
authorAxel Lin <axel.lin@ingics.com>
Mon, 20 Feb 2023 10:56:14 +0000 (18:56 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 20 Feb 2023 14:32:21 +0000 (14:32 +0000)
commitd0566564d483e6576868224286632fd95aafd4ac
tree4608df78076b8bb674bddbae755e691d748ddcea
parent7f62cb8861190e7cc1018ff37597fc49b2eaafa8
regulator: max597x: Fix error return code in max597x_get_status

REGULATOR_FAILED_RETRY should not be used in max597x_get_status error path.
Othewise, the regulator core will treat it as REGULATOR_STATUS_ON.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20230220105614.356187-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max597x-regulator.c