]> pilppa.org Git - linux-2.6-omap-h63xx.git/commit
regulator get_status()
authorDavid Brownell <dbrownell@users.sourceforge.net>
Tue, 20 Jan 2009 10:45:47 +0000 (02:45 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 4 Feb 2009 19:21:55 +0000 (11:21 -0800)
commit957db22522ca287076c3cc9b4d80d148489d12d8
treefe0529199eba422a4e873ccce7f2a75f96958069
parent5af6f80ac04f74bb96c1eaee77e85ccbf98c21d9
regulator 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>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Documentation/ABI/testing/sysfs-class-regulator
drivers/regulator/core.c
include/linux/regulator/driver.h