regulator: regmap helpers - support overlapping linear ranges
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Wed, 22 Aug 2018 09:53:27 +0000 (12:53 +0300)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit27dc4cde7333e9c94648dc74d547826d29ba6583
tree153b547cf4a22fb9fbbcd9c9f6fd9adbac45535d
parent4ca90c45b5ca465a7c9f991d1298afda1d04d80c
regulator: regmap helpers - support overlapping linear ranges

Don't give up voltage mapping if first range with suitable min/max uV
does not provide the wanted voltage.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit e7d80b6b848b4b5f83d3fbee9fd042d036ede9c6)
drivers/regulator/helpers.c