From: David Brownell Date: Tue, 20 Jan 2009 10:45:47 +0000 (-0800) Subject: regulator get_status() X-Git-Tag: v2.6.29-omap1~111 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=957db22522ca287076c3cc9b4d80d148489d12d8;p=pandora-kernel.git 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 Acked-by: Mark Brown Signed-off-by: Liam Girdwood Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed