diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2015-06-12 03:37:05 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-06-12 15:16:57 +0300 |
commit | 57f66b78860968fc7eddc9ce25f8e57f7e5000bd (patch) | |
tree | 5ee90fa99fdd1277706faa3bef39522d26ebc4bc /include/linux/regulator/driver.h | |
parent | 23c779b9f9161d6568d3b2fca06e70ad182c480c (diff) | |
download | linux-57f66b78860968fc7eddc9ce25f8e57f7e5000bd.tar.xz |
regulator: Add soft start support
Some regulators support a "soft start" feature where the voltage
ramps up slowly when the regulator is enabled. Add an op
(set_soft_start) and a DT property + constraint to support this.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regulator/driver.h')
-rw-r--r-- | include/linux/regulator/driver.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h index 76144a337ff7..e0635d0894aa 100644 --- a/include/linux/regulator/driver.h +++ b/include/linux/regulator/driver.h @@ -161,6 +161,8 @@ struct regulator_ops { unsigned int old_selector, unsigned int new_selector); + int (*set_soft_start) (struct regulator_dev *); + /* report regulator status ... most other accessors report * control inputs, this reports results of combining inputs * from Linux (and other sources) with the actual load. |