regulator: implement selector stepping
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 3 Jul 2019 16:10:34 +0000 (18:10 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 4 Jul 2019 16:07:25 +0000 (17:07 +0100)
commit2da8d9473e20a2f6645dcb0cea4848a2c1e83af9
treed76abfc73cbc76a688f6e7f6e07a4c5f1e88abbf
parentba2bf340ade89e71c53273ea115c7872865782c1
regulator: implement selector stepping

Some regulators require that the requested voltage be reached gradually
by setting all or some of the intermediate values. Implement a new field
in the regulator description struct that allows users to specify the
number of selectors by which the regulator API should step when ramping
the voltage up/down.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Link: https://lore.kernel.org/r/20190703161035.31808-2-brgl@bgdev.pl
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
include/linux/regulator/driver.h