Gitweb: http://git.kernel.org/linus/853116a10544206b6b2cf42ebc9d78fba2668888
Commit: 853116a10544206b6b2cf42ebc9d78fba2668888
Parent: 93e14baa4494607efe81608725f591e3ba31e3c1
Author: David Brownell <dbrownell@users.sourceforge.net>
AuthorDate: Wed Jan 14 23:03:17 2009 -0800
Committer: Liam Girdwood <lrg@slimlogic.co.uk>
CommitDate: Tue Mar 31 09:56:20 2009 +0100
regulator: add get_status()
Based on previous LKML discussions:
* Update docs for regulator sysfs class attributes to highlight
the fact that all current attributes are intended to be control
inputs, including notably "state" and "opmode" which previously
implied otherwise.
* Define a new regulator driver get_status() method, which is the
first method reporting regulator outputs instead of inputs.
It can report on/off and error status; or instead of simply
"on", report the actual operating mode.
For the moment, this is a sysfs-only interface, not accessible to
regulator clients. Such clients can use the current notification
interfaces to detect errors, if the regulator reports them.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
---
Documentation/ABI/testing/sysfs-class-regulator | 57 +++++++++++++++++++----
drivers/regulator/core.c | 46 ++++++++++++++++++
include/linux/regulator/driver.h | 17 +++++++
3 files changed, 111 insertions(+), 9 deletions(-)
diff --git a/Documentation/ABI/testing/sysfs-class-regulator b/Documentation/ABI/testing/sysfs-class-regulator
index 873ef1f..e091fa8 100644
--- a/Documentation/ABI/testing/sysfs-class-regulator
+++ b/Documentation/ABI/testing/sysfs-class-regulator
@@ -4,8 +4,8 @@ KernelVersion: 2.6.26
Contact: Liam Girdwood <lrg@slimlogic.co.uk>
Description:
Some regulator directories will contain a field called
- state. This reports ...