u-boot-brain/drivers/power/regulator
Lokesh Vutla cc4a224af2 power: regulator: Introduce regulator_set_enable_if_allowed api
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>
2019-02-09 12:50:22 -07:00
..
act8846.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
as3722_regulator.c power: as3722: fix ldo_get/set_enable for ldo index bigger than 7 2018-05-10 16:34:20 -07:00
fan53555.c power: add FAN53555 family support 2018-12-10 10:04:45 +01:00
fixed.c drivers: regulator: fixed: add u-boot, off-on-delay-us 2018-08-19 20:38:39 -04:00
gpio-regulator.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig power: regulator: Allow PWM regulator to be omitted from SPL. 2019-01-02 22:38:09 +01:00
lp873x_regulator.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
lp87565_regulator.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile power: regulator: Allow PWM regulator to be omitted from SPL. 2019-01-02 22:38:09 +01:00
max77686.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
palmas_regulator.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pbias_regulator.c regulator: pbias: Handle extended drain IO when changing omap36 PBIAS 2019-02-01 14:13:45 -05:00
pfuze100.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pwm_regulator.c power: pwm regulator: support live tree 2018-05-08 13:12:33 +09:00
regulator-uclass.c power: regulator: Introduce regulator_set_enable_if_allowed api 2019-02-09 12:50:22 -07:00
rk8xx.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
s2mps11_regulator.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
s5m8767.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sandbox.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
stm32-vrefbuf.c power: regulator: Add support for stm32-vrefbuf 2018-05-08 09:07:39 -04:00
stpmu1.c power: regulator: stpmu1: add power off delay 2018-07-19 16:31:36 -04:00
tps65090_regulator.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tps65910_regulator.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00