mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-25 04:23:46 +00:00
cc4a224af2
regulator_set_enable() api throws an error in the following three cases: - when requested to disable an always-on regulator - when set_enable() ops not provided by regulator driver - when enabling is actually failed.(Error returned by the regulator driver) Sometimes consumer drivers doesn't want to track the first two scenarios and just need to worry about the case where enabling is actually failed. But it is also a good practice to have an error value returned in the first two cases. So introduce an api regulator_set_enable_if_allowed() which ignores the first two error cases and returns an error as given by regulator driver. Consumer drivers can use this api need not worry about the first two error conditions. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org> |
||
---|---|---|
.. | ||
act8846.c | ||
as3722_regulator.c | ||
fan53555.c | ||
fixed.c | ||
gpio-regulator.c | ||
Kconfig | ||
lp873x_regulator.c | ||
lp87565_regulator.c | ||
Makefile | ||
max77686.c | ||
palmas_regulator.c | ||
pbias_regulator.c | ||
pfuze100.c | ||
pwm_regulator.c | ||
regulator-uclass.c | ||
rk8xx.c | ||
s2mps11_regulator.c | ||
s5m8767.c | ||
sandbox.c | ||
stm32-vrefbuf.c | ||
stpmu1.c | ||
tps65090_regulator.c | ||
tps65910_regulator.c |