linux/drivers/regulator
David Brownell e573520b17 regulator: improved mode error checks
Minor bugfixes in handling of regulator modes:

 - have the routine verifying regulator modes check against
   the set of legal modes (!);

 - have regulator_set_optimum_mode() verify the return value
   of regulator_ops.get_optimum_mode(), like drms_uA_update();

 - one call to regulator_ops.set_mode() treated zero as a
   failure code; make this consistent with other callers.

Both regulator_set_mode() and regulator_set_optimum_mode() now
require valid_ops_mask to include REGULATOR_CHANGE_MODE; that
seems like a bugfix too.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
2009-01-08 20:10:30 +00:00
..
bq24022.c regulator: core - Rework machine API to remove string based functions. 2008-10-13 21:51:50 +01:00
core.c regulator: improved mode error checks 2009-01-08 20:10:30 +00:00
da903x.c regulator: da903x regulator bug fix 2008-10-30 15:31:35 +00:00
fixed.c regulator: add support for fixed regulators. 2008-07-30 10:10:21 +01:00
Kconfig regulator: Use menuconfig in Kconfig 2008-11-09 14:49:23 +00:00
Makefile da903x: add regulator support for DA9030/DA9034 2008-10-13 21:51:57 +01:00
virtual.c regulator: regulator test harness 2008-07-30 10:10:21 +01:00
wm8350-regulator.c mfd: Support configurable numbers of DCDCs and ISINKs on WM8350 2009-01-04 12:17:42 +01:00
wm8400-regulator.c regulator: Add WM8400 regulator support 2008-10-13 21:51:53 +01:00