regulator: max77650: use vsel_step
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 3 Jul 2019 16:10:35 +0000 (18:10 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 4 Jul 2019 16:31:37 +0000 (17:31 +0100)
commit3c7577d442a76c2015dd765497395fb394b78051
treeb15c0e5f0f7b4b2a08bda17fb70ab1b133076410
parent2da8d9473e20a2f6645dcb0cea4848a2c1e83af9
regulator: max77650: use vsel_step

Use the new vsel_step field in the regulator description to instruct
the regulator API on the required voltage ramping. Switch to using the
generic regmap helpers for voltage setting and remove the old set_voltage
callback that handcoded the selector stepping.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Link: https://lore.kernel.org/r/20190703161035.31808-3-brgl@bgdev.pl
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max77650-regulator.c