regulator: rk808: Convert rk805 buck1/2 to use linear range
authorAxel Lin <axel.lin@ingics.com>
Mon, 4 Feb 2019 07:10:51 +0000 (15:10 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 6 Feb 2019 15:56:17 +0000 (15:56 +0000)
commit4f297062b288e9434280dd3a2f0ba7424d7a7224
treeb90df752e5340614d10c913f77319c050c69f4df
parent46689b1e381a09e5907ffd3ddced733379c72ad5
regulator: rk808: Convert rk805 buck1/2 to use linear range

It looks like linear range is suitable to describe the voltage table
for rk805 buck1/2:

selector 0 ~ 59: 0.7125V with uV_step = 12500
selector 60 ~ 62: 1.8V with uV_step = 200000
selector 63: 2.3V

With this change, then rk805 buck1/2 can reuse rk808_reg_ops_ranges.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Tested-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/rk808-regulator.c