regulator: add regulator_desc_list_voltage_linear_range
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Thu, 14 Feb 2019 09:38:05 +0000 (11:38 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit3116fe3012e2a09e639619dadad091bee06ff71b
tree1524674a99af999926c667bd750a2fe241a3d303
parent4f16c0dced12fa018c13850e9f77d7b4dabc2741
regulator: add regulator_desc_list_voltage_linear_range

Add regulator_desc_list_voltage_linear_range which can be used
by drivers for getting the voltages before regulator is registered.
This may be useful for drivers which need to fetch the voltage
selectors at device-tree parsing callback.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Acked-by: Mark Brown <broonie@kernel.org>
Tested-by: Angus Ainslie <angus@akkea.ca>
Reviewed-by: Angus Ainslie <angus@akkea.ca>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit 6a47b4da551a762217215aeeda22e46469c5868a)
drivers/regulator/helpers.c
include/linux/regulator/driver.h