regulator: Support regulators where voltage ranges are selectable
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Fri, 14 Sep 2018 08:31:36 +0000 (11:31 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 28 Sep 2018 13:57:03 +0000 (14:57 +0100)
commit18e4b55fbd2069cee51ef9660b35c65ec13bee6d
tree69c0b9d3796c30651bb669bd40cbd81ec9b3ad30
parent01e17e5d8004f53044c6c9062e04ca118c420512
regulator: Support regulators where voltage ranges are selectable

For example ROHM BD71837 and ROHM BD71847 Power management ICs have
regulators which provide multiple linear ranges. Ranges can be
selected by individual non contagious bit in vsel register. Add
regmap helper functions for selecting ranges.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
drivers/regulator/helpers.c
include/linux/regulator/driver.h