aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regulator/machine.h
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2019-06-24 00:08:31 +0300
committerMark Brown <broonie@kernel.org>2019-06-25 12:15:32 +0100
commitd8ca7d184b33af7913c244900df77c6cad6a5590 (patch)
tree6b259024fbb00ecf42bc589e95b31f8e6d77c6fc /include/linux/regulator/machine.h
parentLinux 5.2-rc1 (diff)
downloadlinux-dev-d8ca7d184b33af7913c244900df77c6cad6a5590.tar.xz
linux-dev-d8ca7d184b33af7913c244900df77c6cad6a5590.zip
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.h2
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;