aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regulator
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-27 14:23:10 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-03 20:28:33 +0100
commit79511ed3225a64f6b7fc749f4f9c1ed82f24f729 (patch)
treed800dbefea3fc15dde99d1ad6f024cfc63e441a7 /include/linux/regulator
parent5260cd2bc97318b8477b1d1e99c5a2c53764135b (diff)
downloadkernel_goldelico_gta04-79511ed3225a64f6b7fc749f4f9c1ed82f24f729.zip
kernel_goldelico_gta04-79511ed3225a64f6b7fc749f4f9c1ed82f24f729.tar.gz
kernel_goldelico_gta04-79511ed3225a64f6b7fc749f4f9c1ed82f24f729.tar.bz2
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')
-rw-r--r--include/linux/regulator/driver.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h
index 84f999ed..176bd43 100644
--- a/include/linux/regulator/driver.h
+++ b/include/linux/regulator/driver.h
@@ -180,6 +180,8 @@ enum regulator_type {
* @vsel_mask: Mask for register bitfield used for selector
* @enable_reg: Register for control when using regmap enable/disable ops
* @enable_mask: Mask for control when using regmap enable/disable ops
+ *
+ * @enable_time: Time taken for initial enable of regulator (in uS).
*/
struct regulator_desc {
const char *name;
@@ -201,6 +203,8 @@ struct regulator_desc {
unsigned int vsel_mask;
unsigned int enable_reg;
unsigned int enable_mask;
+
+ unsigned int enable_time;
};
/**