linux-stable-rt/drivers/regulator
Axel Lin cb220d16f9 regulator: Fix _regulator_get_voltage if get_voltage callback is NULL
In the case of get_voltage callback is NULL, current implementation in
_regulator_get_voltage will return -EINVAL.

Also returns proper error if ret is negative value.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
2011-05-27 10:49:30 +01:00
..
88pm8607.c
Kconfig
Makefile
ab3100.c
ab8500.c
ad5398.c
bq24022.c
core.c regulator: Fix _regulator_get_voltage if get_voltage callback is NULL 2011-05-27 10:49:30 +01:00
da903x.c
db8500-prcmu.c
dummy.c
dummy.h
fixed.c
isl6271a-regulator.c
lp3971.c
lp3972.c
max1586.c
max8649.c
max8660.c
max8925-regulator.c
max8952.c
max8997.c regulator: Remove MAX8997_REG_BUCK1DVS/MAX8997_REG_BUCK2DVS/MAX8997_REG_BUCK5DVS macros 2011-05-27 10:49:10 +01:00
max8998.c
mc13xxx-regulator-core.c regulator: Fix off-by-one value range checking for mc13xxx_regulator_get_voltage 2011-05-27 10:49:10 +01:00
mc13xxx.h
mc13783-regulator.c
mc13892-regulator.c regulator: mc13892: Fix voltage unit in test case. 2011-05-27 10:49:10 +01:00
pcap-regulator.c
pcf50633-regulator.c
tps6105x-regulator.c
tps6507x-regulator.c
tps6524x-regulator.c
tps6586x-regulator.c
tps65023-regulator.c
tps65910-regulator.c regulator: tps65911: Add new chip version 2011-05-27 10:49:10 +01:00
twl-regulator.c REGULATOR: TWL6025: add support to twl-regulator 2011-05-27 10:49:29 +01:00
userspace-consumer.c
virtual.c
wm831x-dcdc.c
wm831x-isink.c
wm831x-ldo.c
wm8350-regulator.c
wm8400-regulator.c
wm8994-regulator.c