linux/drivers/regulator
David Brownell 7ad68e2f97 regulator: sysfs attribute reduction (v2)
Clean up the sysfs interface to regulators by only exposing the
attributes that can be properly displayed.  For example: when a
particular regulator method is needed to display the value, only
create that attribute when that method exists.

This cleaned-up interface is much more comprehensible.  Most
regulators only support a subset of the possible methods, so
often more than half the attributes would be meaningless.  Many
"not defined" values are no longer necessary.  (But handling
of out-of-range values still looks a bit iffy.)

Documentation is updated to reflect that few of the attributes
are *always* present, and to briefly explain why a regulator may
not have a given attribute.

This adds object code, about a dozen bytes more than was removed
by the preceding patch, but saves a bunch of per-regulator data
associated with the now-removed attributes.  So there's a net
reduction in memory footprint.

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: sysfs attribute reduction (v2) 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