linux/drivers/regulator
Axel Lin f509fd46c1 regulator: da9055: Select maximum current in specific range for set_current_limit
Selecting the minimal value is only true for voltage regulators.
For current regulators the maximum in the given range should be
selected instead.

This issue was reported by Heiko Stuebner for gpio-regulator driver [1],
and the conclusion is to select the max current for current regulators [2].

[1] https://lkml.org/lkml/2012/8/5/162
[2] https://lkml.org/lkml/2012/8/6/183

This patch also ensures da9055_buck_set_current_limit return -EINVAL when the
supported current limit does not meet the request range.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2012-11-27 20:21:26 +00:00
..
88pm8607.c mfd: 88pm860x: Device tree support 2012-10-02 11:43:13 +02:00
aat2870-regulator.c regulator: aat2870: Don't explicitly initialise the first field 2012-09-10 15:34:36 +08:00
ab3100.c MFD bits for the 3.7 merge window. 2012-10-05 12:01:30 +09:00
ab8500.c regulator: ab8500: provide per-regulator shift 2012-08-28 11:00:30 -07:00
ad5398.c
anatop-regulator.c MFD bits for the 3.7 merge window. 2012-10-05 12:01:30 +09:00
arizona-ldo1.c Merge remote-tracking branches 'regulator/topic/core', 'regulator/topic/bypass', 'regulator/topic/tol', 'regulator/topic/drivers' and 'regulator/topic/tps6586x' into regulator-next 2012-09-28 14:45:07 +01:00
arizona-micsupp.c regulator: arizona-micsupp: Support get/set bypass 2012-09-10 11:25:12 +08:00
core.c Merge branch 'for-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq 2012-10-02 09:54:49 -07:00
da903x.c
da9052-regulator.c regulator: da9052: set_current_limit should select the maximum current in specific range 2012-08-28 11:00:26 -07:00
da9055-regulator.c regulator: da9055: Select maximum current in specific range for set_current_limit 2012-11-27 20:21:26 +00:00
db8500-prcmu.c
dbx500-prcmu.c
dbx500-prcmu.h
dummy.c
dummy.h
fan53555.c regulator: fan53555: remove vsel_max not used 2012-09-10 15:58:01 +08:00
fixed-helper.c
fixed.c
gpio-regulator.c
isl6271a-regulator.c regulator: isl6271a: Remove get_voltage implementation for isl_fixed_ops 2012-08-28 11:00:27 -07:00
Kconfig regulator: DA9055 regulator driver 2012-11-15 14:29:49 +09:00
lp872x.c regulator: lp872x: remove unnecessary function 2012-09-06 07:53:03 +08:00
lp3971.c
lp3972.c
lp8788-buck.c regulator: Use BUCK_FPWM_[MASK|SHIFT] macros to replace buck_pmap table 2012-08-28 11:00:24 -07:00
lp8788-ldo.c regulator: lp8788-ldo: Set n_voltages to 1 for fixed voltage 2012-08-28 11:00:24 -07:00
Makefile regulator: DA9055 regulator driver 2012-11-15 14:29:49 +09:00
max1586.c
max8649.c
max8660.c
max8907-regulator.c regulator: max8907: Add MODULE_ALIAS 2012-08-28 11:00:30 -07:00
max8925-regulator.c mfd: max8925: Remove array in regulator platform data 2012-09-19 12:39:13 +02:00
max8952.c
max8997.c
max8998.c
max77686.c regulator: max77686: Use array to save pointer to rdev 2012-08-28 11:00:26 -07:00
mc13xxx-regulator-core.c regulator: mc13xxx: Remove get_voltage implementation for single voltage regulators 2012-08-28 11:00:27 -07:00
mc13xxx.h regulator: mc13xxx: Remove get_voltage implementation for single voltage regulators 2012-08-28 11:00:27 -07:00
mc13783-regulator.c regulator: mc13783: add regulators sw1x and sw2x 2012-08-28 11:00:30 -07:00
mc13892-regulator.c regulator: mc13xxx: Remove get_voltage implementation for single voltage regulators 2012-08-28 11:00:27 -07:00
of_regulator.c regulator: deprecate regulator-compatible DT property 2012-09-25 13:44:47 +01:00
palmas-regulator.c MFD bits for the 3.7 merge window. 2012-10-05 12:01:30 +09:00
pcap-regulator.c
pcf50633-regulator.c
rc5t583-regulator.c
s2mps11.c
s5m8767.c
tps6105x-regulator.c
tps6507x-regulator.c
tps6524x-regulator.c regulator: tps6524x: set_current_limit should select the maximum current in specific range 2012-08-28 11:00:26 -07:00
tps6586x-regulator.c Merge remote-tracking branches 'regulator/topic/core', 'regulator/topic/bypass', 'regulator/topic/tol', 'regulator/topic/drivers' and 'regulator/topic/tps6586x' into regulator-next 2012-09-28 14:45:07 +01:00
tps62360-regulator.c
tps65023-regulator.c
tps65090-regulator.c
tps65217-regulator.c
tps65910-regulator.c
tps65912-regulator.c
twl-regulator.c regulator: twl: Remove another unused variable warning 2012-09-09 11:09:38 +08:00
userspace-consumer.c
virtual.c
wm831x-dcdc.c MFD bits for the 3.7 merge window. 2012-10-05 12:01:30 +09:00
wm831x-isink.c mfd: wm831x: Convert to IORESOURCE_REG 2012-09-11 10:15:03 +02:00
wm831x-ldo.c MFD bits for the 3.7 merge window. 2012-10-05 12:01:30 +09:00
wm8350-regulator.c
wm8400-regulator.c regulator: wm8400: Simplify set REGULATOR_MODE_IDLE mode in wm8400_dcdc_set_mode 2012-08-28 11:00:25 -07:00
wm8994-regulator.c