commit | 03a1bc3e07bfc87358d5530a9fc7d038cec72bb6 | [log] [tgz] |
---|---|---|
author | Jonas Karlman <jonas@kwiboo.se> | Wed Jul 19 21:20:55 2023 +0000 |
committer | Tom Rini <trini@konsulko.com> | Mon Aug 14 09:14:41 2023 -0400 |
tree | e890fed59be16048e7c299968711406d7000e230 | |
parent | e9aa12ca4b561aab7774865648b513b7f7e25e79 [diff] |
adc: Use regulator_set_enable_if_allowed With the commit 4fcba5d556b4 ("regulator: implement basic reference counter") the return value of regulator_set_enable may be EALREADY or EBUSY for fixed/gpio regulators. Change to use the more relaxed regulator_set_enable_if_allowed to continue if regulator already was enabled or disabled. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> # rockpro64-rk3399