aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regulator/driver.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2008-12-31 07:52:42 -0500
committerLiam Girdwood <lrg@slimlogic.co.uk>2009-01-08 15:10:33 -0500
commitc8e7e4640facbe99d10a6e262523b25be129b9b9 (patch)
tree0240abf412f237e65c77c288454f864a64cbb856 /include/linux/regulator/driver.h
parent69279fb9a95051971ac03e558c4d46e7ba84ab3a (diff)
regulator: Add missing kerneldoc
This is only the documentation that the kerneldoc system warns about. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'include/linux/regulator/driver.h')
-rw-r--r--include/linux/regulator/driver.h40
1 files changed, 39 insertions, 1 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h
index e37d8056198..84c3737c2d2 100644
--- a/include/linux/regulator/driver.h
+++ b/include/linux/regulator/driver.h
@@ -24,7 +24,37 @@ struct regulator_init_data;
24/** 24/**
25 * struct regulator_ops - regulator operations. 25 * struct regulator_ops - regulator operations.
26 * 26 *
27 * This struct describes regulator operations. 27 * This struct describes regulator operations which can be implemented by
28 * regulator chip drivers.
29 *
30 * @enable: Enable the regulator.
31 * @disable: Disable the regulator.
32 * @is_enabled: Return 1 if the reguator is enabled, 0 otherwise.
33 *
34 * @set_voltage: Set the voltage for the regulator within the range specified.
35 * The driver should select the voltage closest to min_uV.
36 * @get_voltage: Return the currently configured voltage for the regulator.
37 *
38 * @set_current: Set the current for the regulator within the range specified.
39 * The driver should select the current closest to min_uA.
40 * @get_current: Return the currently configured current for the regulator.
41 *
42 * @set_current_limit: Configure a limit for a current-limited regulator.
43 * @get_current_limit: Get the limit for a current-limited regulator.
44 *
45 * @set_mode: Set the operating mode for the regulator.
46 * @get_mode: Get the current operating mode for the regulator.
47 * @get_optimum_mode: Get the most efficient operating mode for the regulator
48 * when running with the specified parameters.
49 *
50 * @set_suspend_voltage: Set the voltage for the regulator when the system
51 * is suspended.
52 * @set_suspend_enable: Mark the regulator as enabled when the system is
53 * suspended.
54 * @set_suspend_disable: Mark the regulator as disabled when the system is
55 * suspended.
56 * @set_suspend_mode: Set the operating mode for the regulator when the
57 * system is suspended.
28 */ 58 */
29struct regulator_ops { 59struct regulator_ops {
30 60
@@ -75,6 +105,14 @@ enum regulator_type {
75/** 105/**
76 * struct regulator_desc - Regulator descriptor 106 * struct regulator_desc - Regulator descriptor
77 * 107 *
108 * Each regulator registered with the core is described with a structure of
109 * this type.
110 *
111 * @name: Identifying name for the regulator.
112 * @id: Numerical identifier for the regulator.
113 * @ops: Regulator operations table.
114 * @type: Indicates if the regulator is a voltage or current regulator.
115 * @owner: Module providing the regulator, used for refcounting.
78 */ 116 */
79struct regulator_desc { 117struct regulator_desc {
80 const char *name; 118 const char *name;