diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2008-11-11 17:39:02 -0800 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2009-01-08 20:10:30 +0000 |
commit | 7ad68e2f970fd84d15ad67ce3216aed05f944a9c (patch) | |
tree | b7bb5f33e6a6a1d60cc9d2be24a7d2dee36f0f93 /fs/quota_tree.c | |
parent | 4fca9545d17b99cdb2774716b034c62a70151bcd (diff) |
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>
Diffstat (limited to 'fs/quota_tree.c')
0 files changed, 0 insertions, 0 deletions