summaryrefslogtreecommitdiff
path: root/drivers/regulator/wm8400-regulator.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-07-03 01:52:41 +0400
committerMark Brown <broonie@linaro.org>2013-07-15 14:20:32 +0400
commit94d33c02c7186b69849c292e1216a08ad1c0d99d (patch)
tree7427db70b59494e1d8e3f295123ab1fd2d53f663 /drivers/regulator/wm8400-regulator.c
parentad81f0545ef01ea651886dddac4bef6cec930092 (diff)
downloadlinux-94d33c02c7186b69849c292e1216a08ad1c0d99d.tar.xz
regulator: core: Add helpers for multiple linear ranges
Many regulators have several linear ranges of selector with different step sizes, for example offering better resolution at lower voltages. Provide regulator_{map,list}_voltage_linear_range() allowing these regulators to use generic code. To do so a table of regulator_linear_range structs needs to be pointed to from the descriptor. This was inspired by similar code included in a driver submission from Chao Xie and Yi Zhang at Marvell. Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/wm8400-regulator.c')
0 files changed, 0 insertions, 0 deletions