regulator: core: Introduce API for regulators coupling customization
authorDmitry Osipenko <digetx@gmail.com>
Sun, 23 Jun 2019 21:08:31 +0000 (00:08 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 25 Jun 2019 11:15:32 +0000 (12:15 +0100)
commitd8ca7d184b33af7913c244900df77c6cad6a5590
tree6b259024fbb00ecf42bc589e95b31f8e6d77c6fc
parenta188339ca5a396acc588e5851ed7e19f66b0ebd9
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>
drivers/regulator/core.c
drivers/regulator/of_regulator.c
include/linux/regulator/coupler.h [new file with mode: 0644]
include/linux/regulator/driver.h
include/linux/regulator/machine.h