diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2019-06-24 00:08:31 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-06-25 14:15:32 +0300 |
commit | d8ca7d184b33af7913c244900df77c6cad6a5590 (patch) | |
tree | 6b259024fbb00ecf42bc589e95b31f8e6d77c6fc /include/linux/regulator/machine.h | |
parent | a188339ca5a396acc588e5851ed7e19f66b0ebd9 (diff) | |
download | linux-d8ca7d184b33af7913c244900df77c6cad6a5590.tar.xz |
regulator: core: Introduce API for regulators coupling customization
Right now regulator core supports only one type of regulators coupling,
the "voltage max-spread" which keeps voltages of coupled regulators in a
given range from each other. A more sophisticated coupling may be required
in practice, one example is the NVIDIA Tegra SoCs which besides the
max-spreading have other restrictions that must be adhered. Introduce API
that allow platforms to provide their own customized coupling algorithms.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regulator/machine.h')
-rw-r--r-- | include/linux/regulator/machine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/regulator/machine.h b/include/linux/regulator/machine.h index 1d34a70ffda2..21db06e5c1ed 100644 --- a/include/linux/regulator/machine.h +++ b/include/linux/regulator/machine.h @@ -156,7 +156,7 @@ struct regulation_constraints { int system_load; /* used for coupled regulators */ - int max_spread; + u32 *max_spread; /* used for changing voltage in steps */ int max_uV_step; |