regulator: core: Add set/get_current_limit helpers for regmap users
authorAxel Lin <axel.lin@ingics.com>
Thu, 28 Feb 2019 13:40:13 +0000 (21:40 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 3 Mar 2019 23:45:27 +0000 (23:45 +0000)
commita32e0c773b5f233b0589dbb621bb2b9681dbfec3
tree00e56d9c6df3f2042609d508935030f6cc369f93
parent35d838ff98bc57c882eb610393c6b68455d3d9fe
regulator: core: Add set/get_current_limit helpers for regmap users

By setting curr_table, n_current_limits, csel_reg and csel_mask, the
regmap users can use regulator_set_current_limit_regmap and
regulator_get_current_limit_regmap for set/get_current_limit callbacks.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/helpers.c
include/linux/regulator/driver.h