diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-27 09:23:10 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-07-03 15:28:33 -0400 |
commit | 79511ed3225a64f6b7fc749f4f9c1ed82f24f729 (patch) | |
tree | d800dbefea3fc15dde99d1ad6f024cfc63e441a7 /include/linux/regulator/driver.h | |
parent | 5260cd2bc97318b8477b1d1e99c5a2c53764135b (diff) |
regulator: core: Allow fixed enable_time to be set in the regulator_desc
Many regulators have a fixed specification for their enable time. Allow
this to be set in the regulator_desc as a number to save them having to
implement an explicit operation.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/regulator/driver.h')
-rw-r--r-- | include/linux/regulator/driver.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h index 84f999ed394b..176bd4335581 100644 --- a/include/linux/regulator/driver.h +++ b/include/linux/regulator/driver.h | |||
@@ -180,6 +180,8 @@ enum regulator_type { | |||
180 | * @vsel_mask: Mask for register bitfield used for selector | 180 | * @vsel_mask: Mask for register bitfield used for selector |
181 | * @enable_reg: Register for control when using regmap enable/disable ops | 181 | * @enable_reg: Register for control when using regmap enable/disable ops |
182 | * @enable_mask: Mask for control when using regmap enable/disable ops | 182 | * @enable_mask: Mask for control when using regmap enable/disable ops |
183 | * | ||
184 | * @enable_time: Time taken for initial enable of regulator (in uS). | ||
183 | */ | 185 | */ |
184 | struct regulator_desc { | 186 | struct regulator_desc { |
185 | const char *name; | 187 | const char *name; |
@@ -201,6 +203,8 @@ struct regulator_desc { | |||
201 | unsigned int vsel_mask; | 203 | unsigned int vsel_mask; |
202 | unsigned int enable_reg; | 204 | unsigned int enable_reg; |
203 | unsigned int enable_mask; | 205 | unsigned int enable_mask; |
206 | |||
207 | unsigned int enable_time; | ||
204 | }; | 208 | }; |
205 | 209 | ||
206 | /** | 210 | /** |