OSDN Git Service

regulator: bd718XX use pickable ranges
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Fri, 14 Sep 2018 08:33:11 +0000 (11:33 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 28 Sep 2018 13:57:12 +0000 (14:57 +0100)
commita4bfc2c28a21f4d5274d813b20fd015a9dc9bcfa
tree305d8534d10d78ba820ea0168c1302af14c30c4c
parentdd2be639f4a918b335818bf22a937956e552b957
regulator: bd718XX use pickable ranges

Few regulators in BD71837 and BD71847 can output voltages from
different voltage ranges. Register interface is arranged so that
used range is selected by toggling bits which are not next to actual
voltage selection bits. Then the voltage inside selected range is
determined by voltage selection bits (as usual). Support BD71837
and BD71847 selectible range voltages using new pickable ranges
helpers.

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