[PATCH 0/2] regulator: stepping set voltage for regmap users

From: Bartosz Golaszewski
Date: Mon Dec 10 2018 - 10:10:40 EST


I'm working on a regulator driver for a PMIC whose programming manual
suggests manual ramping of the regulator output voltage one step at a
time (when the regulator is enabled).

Initially I wanted to simply put it into the driver but noticed that
some other modules (e.g. rk808) seem to be doing the same and could
potentially benefit from putting this helper into the regulator core
code.

The first patch makes _regulator_is_enabled() available to regulator
code outside core.c. The second provides the helper described above.

If accepted this will be used in a driver submitted for review after
the 4.21 merge window.

Bartosz Golaszewski (2):
regulator: make _regulator_is_enabled() available in internal.h
regulator: provide regulator_set_voltage_sel_regmap_step() helper

drivers/regulator/core.c | 3 +-
drivers/regulator/helpers.c | 48 ++++++++++++++++++++++++++++++++
drivers/regulator/internal.h | 1 +
include/linux/regulator/driver.h | 2 ++
4 files changed, 52 insertions(+), 2 deletions(-)

--
2.19.1