regulator: core: Add regulator_sync_voltage_rdev()
authorDmitry Osipenko <digetx@gmail.com>
Thu, 27 May 2021 23:54:00 +0000 (02:54 +0300)
committerThierry Reding <treding@nvidia.com>
Tue, 1 Jun 2021 10:13:30 +0000 (12:13 +0200)
commit380d2b2d5a0491e47dfa250b40e3d849a922871d
treef8a9fe33fd48baa69b263ccd533b472c9b20fac2
parent6efb943b8616ec53a5e444193dccf1af9ad627b5
regulator: core: Add regulator_sync_voltage_rdev()

Some NVIDIA Tegra devices use a CPU soft-reset method for the reboot and
in this case we need to restore the coupled voltages to the state that is
suitable for hardware during boot. Add new regulator_sync_voltage_rdev()
helper which is needed by regulator drivers in order to sync voltage of
a coupled regulators.

Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/regulator/core.c
include/linux/regulator/driver.h