]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1be19d4df8b7ddf7ed1b56a6c7f7e927a7a1bdb8
tree00e56d9c6df3f2042609d508935030f6cc369f93
parente6993cdad208058296bdbc8265c024394a05f888
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