aboutsummaryrefslogtreecommitdiff
path: root/drivers/adc/sandbox.c
diff options
context:
space:
mode:
authorJonas Karlman <jonas@kwiboo.se>2023-07-19 21:20:55 +0000
committerTom Rini <trini@konsulko.com>2023-08-14 09:14:41 -0400
commitd82cbc596eb5df41c8e7e3c73dc32b0731cf6500 (patch)
treee890fed59be16048e7c299968711406d7000e230 /drivers/adc/sandbox.c
parent321d7b4d875a77552a969dd6ea5bbed2644fcb0c (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
Diffstat (limited to 'drivers/adc/sandbox.c')
0 files changed, 0 insertions, 0 deletions