regulator: Make regulator_sync_voltage() usable by coupled regulators
authorDmitry Osipenko <digetx@gmail.com>
Fri, 22 Jan 2021 17:43:11 +0000 (20:43 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 22 Jan 2021 17:47:36 +0000 (17:47 +0000)
commit24be0c715617ed9bfc63fa9483f8bda1214b9763
treecd5bc8d5e8da2ac739310d66bd80b68eee3e91c8
parenta5872bd3398d0ff2ce4c77794bc7837899c69024
regulator: Make regulator_sync_voltage() usable by coupled regulators

Make regulator_sync_voltage() to re-balance voltage state of a coupled
regulators instead of changing the voltage directly.

Tested-by: Peter Geis <pgwipeout@gmail.com> # Ouya T30
Tested-by: Dmitry Osipenko <digetx@gmail.com> # A500 T20 and Nexus7 T30
Tested-by: Nicolas Chauvet <kwizart@gmail.com> # PAZ00 T20
Tested-by: Matt Merhar <mattmerhar@protonmail.com> # Ouya T30
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20210122174311.28230-1-digetx@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c