regulator: Fix pickable ranges mapping
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Fri, 12 Jun 2020 09:23:17 +0000 (12:23 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 12 Jun 2020 13:57:17 +0000 (14:57 +0100)
commit92919679d31721381e3c376488477efe49b915f3
tree138e919cf8016ba10fa590c37b19536fed7c9aca
parentd7442ba13d62de9afc4e57344a676f9f4623dcaa
regulator: Fix pickable ranges mapping

Pickable ranges mapping function never used range min selector. Thus
existing drivers broke when proper linear_ranges functionality was taken
in use. Fix this for now just by ignoring the minimum selector.

Fixes: 60ab7f4153b6 ("regulator: use linear_ranges helper")
Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Link: https://lore.kernel.org/r/20200612090225.GA3243@localhost.localdomain
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/helpers.c