Skip to content

regulator: Add set/get_current_limit helpers and use it

Axel Lin lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11regulator: Fix comment for csel_reg and csel_maskinclude/linux/regulator/driver.h+2 -20 replies
2/11regulator: core: Add set/get_current_limit helpers for regmap usersdrivers/regulator/helpers.c include/linux/regulator/driver.h+93 -00 replies
3/11regulator: da9055: Convert to use regulator_set/get_current_limit_regmapdrivers/regulator/da9055-regulator.c+9 -361 reply
4/11regulator: da9210: Convert to use regulator_set/get_current_limit_regmapdrivers/regulator/da9210-regulator.c+7 -461 reply
5/11regulator: lp872x: Convert to use regulator_set/get_current_limit_regmapdrivers/regulator/lp872x.c+10 -600 replies
6/11regulator: lp873x: Convert to use regulator_set/get_current_limit_regmapdrivers/regulator/lp873x-regulator.c+6 -390 replies
7/11regulator: max77650: Convert to use regulator_set/get_current_limit_regmapdrivers/regulator/max77650-regulator.c+25 -491 reply
8/11regulator: pv88060: Convert to use regulator_set/get_current_limit_regmapdrivers/regulator/pv88060-regulator.c+7 -441 reply
9/11regulator: pv88080: Convert to use regulator_set/get_current_limit_regmapdrivers/regulator/pv88080-regulator.c+8 -471 reply
10/11regulator: pv88090: Convert to use regulator_set/get_current_limit_regmapdrivers/regulator/pv88090-regulator.c+8 -451 reply
11/11regulator: wm831x-dcdc: Convert to use regulator_set/get_current_limit_regmapdrivers/regulator/wm831x-dcdc.c+6 -361 reply

Reviews trailers per patch

7 of 11 patches have a Reviewed-by or Acked-by.

PatchSteve TwissBartosz GolaszewskiCharles Keepax
1/11
2/11
3/11A-b
4/11A-b
5/11
6/11
7/11A-b
8/11A-b
9/11A-b
10/11A-b
11/11A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/11] regulator: Add set/get_current_limit helpers and use it

This serial adds regulator_set/get_current_limit_regmap helpers for regmap users and convert drivers to use these helpers.

patch 1 is a comment fix for existing csel_reg/csel_mask fields. patch 2 adds n_current_limits and *curr_table fields to
struct regulator_desc and then adds regulator_set_current_limit_regmap() and regulator_get_current_limit_regmap()
patch 3-11 convert drivers to use regulator_set/get_current_limit_regmap
helpers

I don't have h/w for these drivers, so please test it.

Axel Lin (11):
regulator: Fix comment for csel_reg and csel_mask
regulator: core: Add set/get_current_limit helpers for regmap users
regulator: da9055: Convert to use
regulator_set/get_current_limit_regmap
regulator: da9210: Convert to use
regulator_set/get_current_limit_regmap
regulator: lp872x: Convert to use
regulator_set/get_current_limit_regmap
regulator: lp873x: Convert to use
regulator_set/get_current_limit_regmap
regulator: max77650: Convert to use
regulator_set/get_current_limit_regmap
regulator: pv88060: Convert to use
regulator_set/get_current_limit_regmap
regulator: pv88080: Convert to use
regulator_set/get_current_limit_regmap
regulator: pv88090: Convert to use
regulator_set/get_current_limit_regmap
regulator: wm831x-dcdc: Convert to use
regulator_set/get_current_limit_regmap

 drivers/regulator/da9055-regulator.c   | 45 +++-----------
 drivers/regulator/da9210-regulator.c   | 53 +++-------------
 drivers/regulator/helpers.c            | 86 ++++++++++++++++++++++++++
 drivers/regulator/lp872x.c             | 70 +++------------------
 drivers/regulator/lp873x-regulator.c   | 45 ++------------
 drivers/regulator/max77650-regulator.c | 74 ++++++++--------------
 drivers/regulator/pv88060-regulator.c  | 51 +++------------
 drivers/regulator/pv88080-regulator.c  | 55 +++-------------
 drivers/regulator/pv88090-regulator.c  | 53 +++-------------
 drivers/regulator/wm831x-dcdc.c        | 42 ++-----------
 include/linux/regulator/driver.h       | 11 +++-
 11 files changed, 181 insertions(+), 404 deletions(-)
Signature · 1 line
2.17.1