1
0
Fork 0
remarkable-linux/include/linux/regulator
Tim Kryger df7926fffa regulator: core: Return error in get optional stub
Drivers that call regulator_get_optional are tolerant to the absence of
that regulator.  By modifying the value returned from the stub function
to match that seen when a regulator isn't present, callers can wrap the
regulator logic with an IS_ERR based conditional even if they happen to
call regulator_is_supported_voltage.  This improves efficiency as well
as eliminates the possibility for a very subtle bug.

Signed-off-by: Tim Kryger <tim.kryger@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
2014-04-18 15:11:54 +01:00
..
ab8500.h regulator: ab8500-ext: Register as a device in its own right 2013-06-11 12:50:00 +01:00
act8865.h regulator: act8865: add PMIC act8865 driver 2013-12-24 13:47:40 +00:00
consumer.h regulator: core: Return error in get optional stub 2014-04-18 15:11:54 +01:00
db8500-prcmu.h
driver.h regulator: helpers: Modify helpers enabling multi-bit control 2014-03-06 17:30:10 +08:00
fan53555.h regulator: fan53555: Prevent multiple include of fan53555.h 2013-08-07 10:38:16 +01:00
fixed.h Merge branch 'regulator-drivers' into regulator-next 2012-07-22 19:32:00 +01:00
gpio-regulator.h regulator: Add driver for gpio-controlled regulators 2011-10-09 12:36:21 +01:00
lp872x.h regulator: add new regulator driver for lp872x 2012-06-19 23:14:29 +01:00
lp3971.h
lp3972.h
machine.h Merge remote-tracking branch 'regulator/topic/optional' into regulator-next 2013-10-24 11:11:39 +01:00
max1586.h
max8649.h
max8660.h regulators: max8660: add DT bindings 2013-08-02 17:29:54 +01:00
max8952.h regulator: max8952: Add Device Tree support 2013-04-05 11:20:52 +01:00
max8973-regulator.h regulator: max8973: add regulator driver support 2012-11-19 17:03:11 +09:00
of_regulator.h regulator: Add generic DT parsing for regulators 2012-05-04 13:25:15 +01:00
pfuze100.h regulator: pfuze100: add pfuze200 support 2014-03-04 17:40:31 +08:00
tps6507x.h
tps51632-regulator.h regulator: tps51632: Add tps51632 regulator driver 2012-10-15 11:54:42 +09:00
tps62360.h regulator: tps62360: support force PWM mode via regulator mode 2012-05-14 18:03:04 +01:00
userspace-consumer.h