]> git.dujemihanovic.xyz Git - u-boot.git/commit
regulator: handle different error codes in regulator_set_enable_if_allowed
authorEugen Hristev <eugen.hristev@collabora.com>
Wed, 19 Apr 2023 13:45:26 +0000 (16:45 +0300)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 4 Jul 2023 02:21:12 +0000 (11:21 +0900)
commit8202bc29454cfdd5839058e4b79c36a3fbb221cf
tree744bd9cc4265fb5ad94e82a9e7ff25df44950c4e
parent29fca9f23a3b730cbf91c18617e25d9d8e3a26b7
regulator: handle different error codes in regulator_set_enable_if_allowed

The regulator core can return different codes which are not considered
a real error for this function.
Return success in such cases.

Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/power/regulator/regulator-uclass.c