regulator: extract voltage balancing code to the separate function
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 29 May 2020 12:49:39 +0000 (14:49 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 29 May 2020 13:36:00 +0000 (14:36 +0100)
commit752db83a5dfd4fd3a0624b9ab440ed947fa003ca
treed397f523ed8569d6d50c2ef32e1419d729f0bdf3
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
regulator: extract voltage balancing code to the separate function

Move the coupled regulators voltage balancing code to the separate
function and allow to call it from the custom regulator couplers.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20200529124940.10675-2-m.szyprowski@samsung.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
include/linux/regulator/coupler.h