diff options
| author | Donggeun Kim <dg77.kim@samsung.com> | 2012-01-03 02:22:03 -0500 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-03 15:20:01 -0500 |
| commit | e1de2f423462a5c6ba2c902dff1f5ddd8d3dbde3 (patch) | |
| tree | 4924c6a832f36ea58b83e8b1ecbf8602ca5b86ab /include/linux | |
| parent | 1bb50b28a984857c2487d13187af5b3701aed38a (diff) | |
regulator: add regulator_bulk_force_disable function
This patch allows consumers to forcibly disable multiple regulator
clients in a single API call.
Signed-off-by: Donggeun Kim <dg77.kim@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/regulator/consumer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index 889ab5aaa85b..f2698a0edfc4 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h | |||
| @@ -149,6 +149,8 @@ int regulator_bulk_enable(int num_consumers, | |||
| 149 | struct regulator_bulk_data *consumers); | 149 | struct regulator_bulk_data *consumers); |
| 150 | int regulator_bulk_disable(int num_consumers, | 150 | int regulator_bulk_disable(int num_consumers, |
| 151 | struct regulator_bulk_data *consumers); | 151 | struct regulator_bulk_data *consumers); |
| 152 | int regulator_bulk_force_disable(int num_consumers, | ||
| 153 | struct regulator_bulk_data *consumers); | ||
| 152 | void regulator_bulk_free(int num_consumers, | 154 | void regulator_bulk_free(int num_consumers, |
| 153 | struct regulator_bulk_data *consumers); | 155 | struct regulator_bulk_data *consumers); |
| 154 | 156 | ||
| @@ -247,6 +249,12 @@ static inline int regulator_bulk_disable(int num_consumers, | |||
| 247 | return 0; | 249 | return 0; |
| 248 | } | 250 | } |
| 249 | 251 | ||
| 252 | static inline int regulator_bulk_force_disable(int num_consumers, | ||
| 253 | struct regulator_bulk_data *consumers) | ||
| 254 | { | ||
| 255 | return 0; | ||
| 256 | } | ||
| 257 | |||
| 250 | static inline void regulator_bulk_free(int num_consumers, | 258 | static inline void regulator_bulk_free(int num_consumers, |
| 251 | struct regulator_bulk_data *consumers) | 259 | struct regulator_bulk_data *consumers) |
| 252 | { | 260 | { |
