diff options
author | Paul Walmsley <pwalmsley@nvidia.com> | 2013-06-07 08:06:56 +0000 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-07 11:19:29 +0100 |
commit | 2a668a8bc2cbe7a464ab1212475a3efb23a94b1e (patch) | |
tree | 74419d34e14f6307468a659e63072426d65b592e /include/linux/regulator | |
parent | d683b96b072dc4680fc74964eca77e6a23d1fa6e (diff) | |
download | blackbird-op-linux-2a668a8bc2cbe7a464ab1212475a3efb23a94b1e.tar.gz blackbird-op-linux-2a668a8bc2cbe7a464ab1212475a3efb23a94b1e.zip |
regulator: core: add regulator_get_linear_step()
Add regulator_get_linear_step(), which returns the voltage step size
between VSEL values for linear regulators. This is intended for use
by regulator consumers which build their own voltage-to-VSEL tables.
Signed-off-by: Paul Walmsley <pwalmsley@nvidia.com>
Reviewed-by: Andrew Chew <achew@nvidia.com>
Cc: Matthew Longnecker <mlongnecker@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/linux/regulator')
-rw-r--r-- | include/linux/regulator/consumer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index 145022a83085..3a76389c6aaa 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h @@ -165,6 +165,7 @@ int regulator_count_voltages(struct regulator *regulator); int regulator_list_voltage(struct regulator *regulator, unsigned selector); int regulator_is_supported_voltage(struct regulator *regulator, int min_uV, int max_uV); +unsigned int regulator_get_linear_step(struct regulator *regulator); int regulator_set_voltage(struct regulator *regulator, int min_uV, int max_uV); int regulator_set_voltage_time(struct regulator *regulator, int old_uV, int new_uV); |