regulator: helpers: Export helper voltage listing
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Mon, 29 Mar 2021 12:57:33 +0000 (15:57 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 2 Apr 2021 17:33:58 +0000 (18:33 +0100)
commite3baacf54275647a018ee35bff3bc775a8a2a01a
tree98bfaf2245d165120e1dd8979a3ac904e2384e0d
parent0d02ec6b3136c73c09e7859f0d0e4e2c4c07b49b
regulator: helpers: Export helper voltage listing

Some drivers need to translate voltage values to selectors prior regulator
registration. Currently a regulator_desc based list_voltages helper is only
exported for regulators using the linear_ranges. Export similar helper also
for regulators using simple linear mapping.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Link: https://lore.kernel.org/r/1200ef7a50c84327ada019b85f6527b4fc9b5ce1.1617020713.git.matti.vaittinen@fi.rohmeurope.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/helpers.c
include/linux/regulator/driver.h