regulator: stepping set voltage for regmap users
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | regulator: make _regulator_is_enabled() available in internal.hdrivers/ drivers/ | +2 | 0 replies | |
| 2/2 | regulator: provide regulator_set_voltage_sel_regmap_step() helperdrivers/ include/ | +50 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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