Skip to content

regulator: stepping set voltage for regmap users

Bartosz Golaszewski lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2regulator: make _regulator_is_enabled() available in internal.hdrivers/regulator/core.c drivers/regulator/internal.h+2 -20 replies
2/2regulator: provide regulator_set_voltage_sel_regmap_step() helperdrivers/regulator/helpers.c include/linux/regulator/driver.h+50 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.19.1