]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitad488b3551b0ff2ce6d8fb23529331d01ffd76c0
treed76abfc73cbc76a688f6e7f6e07a4c5f1e88abbf
parent41346eea336f53e222e035d8d9f2e195d8d2d6d3
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