regulator: rohm-regulator: linear voltage support
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Mon, 5 Apr 2021 11:43:26 +0000 (14:43 +0300)
committerLee Jones <lee.jones@linaro.org>
Wed, 14 Apr 2021 09:19:36 +0000 (10:19 +0100)
commit9cf37cec4b7d2cb972ba1682dd5c8f39a5761129
tree8a22a4d2dc2a9d378a18e834b6ff31009b7a7b16
parent703b288f3edf7b08d256499802fba88df5032d53
regulator: rohm-regulator: linear voltage support

The helper for obtaining HW-state based DVS voltage levels currently only
works for regulators using linear-ranges. Extend support to regulators with
simple linear mappings and add also proper error path if pickable-ranges
regulators call this.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/regulator/rohm-regulator.c