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)
committerMark Brown <broonie@kernel.org>
Thu, 14 Feb 2019 15:12:26 +0000 (15:12 +0000)
commit6a47b4da551a762217215aeeda22e46469c5868a
tree50d305a1807646538778dca11a8797a6530edce2
parentf43d1b388f9be4aa47ed42c33659243a675c5c76
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>
drivers/regulator/helpers.c
include/linux/regulator/driver.h