diff options
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/core.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index fda44009024d..7341c97cd916 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c | |||
@@ -1012,10 +1012,12 @@ static int _regulator_enable(struct regulator_dev *rdev) | |||
1012 | * regulator_enable - enable regulator output | 1012 | * regulator_enable - enable regulator output |
1013 | * @regulator: regulator source | 1013 | * @regulator: regulator source |
1014 | * | 1014 | * |
1015 | * Enable the regulator output at the predefined voltage or current value. | 1015 | * Request that the regulator be enabled with the regulator output at |
1016 | * the predefined voltage or current value. Calls to regulator_enable() | ||
1017 | * must be balanced with calls to regulator_disable(). | ||
1018 | * | ||
1016 | * NOTE: the output value can be set by other drivers, boot loader or may be | 1019 | * NOTE: the output value can be set by other drivers, boot loader or may be |
1017 | * hardwired in the regulator. Calls to regulator_enable() must be balanced | 1020 | * hardwired in the regulator. |
1018 | * with calls to regulator_disable(). | ||
1019 | */ | 1021 | */ |
1020 | int regulator_enable(struct regulator *regulator) | 1022 | int regulator_enable(struct regulator *regulator) |
1021 | { | 1023 | { |
@@ -1073,11 +1075,13 @@ static int _regulator_disable(struct regulator_dev *rdev) | |||
1073 | * regulator_disable - disable regulator output | 1075 | * regulator_disable - disable regulator output |
1074 | * @regulator: regulator source | 1076 | * @regulator: regulator source |
1075 | * | 1077 | * |
1076 | * Disable the regulator output voltage or current. | 1078 | * Disable the regulator output voltage or current. Calls to |
1079 | * regulator_enable() must be balanced with calls to | ||
1080 | * regulator_disable(). | ||
1077 | * | 1081 | * |
1078 | * NOTE: this will only disable the regulator output if no other consumer | 1082 | * NOTE: this will only disable the regulator output if no other consumer |
1079 | * devices have it enabled. Calls to regulator_enable() must be balanced with | 1083 | * devices have it enabled, the regulator device supports disabling and |
1080 | * calls to regulator_disable(). | 1084 | * machine constraints permit this operation. |
1081 | */ | 1085 | */ |
1082 | int regulator_disable(struct regulator *regulator) | 1086 | int regulator_disable(struct regulator *regulator) |
1083 | { | 1087 | { |
@@ -1936,7 +1940,7 @@ void regulator_unregister(struct regulator_dev *rdev) | |||
1936 | EXPORT_SYMBOL_GPL(regulator_unregister); | 1940 | EXPORT_SYMBOL_GPL(regulator_unregister); |
1937 | 1941 | ||
1938 | /** | 1942 | /** |
1939 | * regulator_suspend_prepare: prepare regulators for system wide suspend | 1943 | * regulator_suspend_prepare - prepare regulators for system wide suspend |
1940 | * @state: system suspend state | 1944 | * @state: system suspend state |
1941 | * | 1945 | * |
1942 | * Configure each regulator with it's suspend operating parameters for state. | 1946 | * Configure each regulator with it's suspend operating parameters for state. |