regulator: mt6359: Get rid of linear_range tables
authorAxel Lin <axel.lin@ingics.com>
Sun, 6 Jun 2021 06:50:52 +0000 (14:50 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 7 Jun 2021 15:24:09 +0000 (16:24 +0100)
commit73d4ae57f82ec1e5fc92b9acd25bb1db2f8cf8e3
treef42c79be54f49a589fb3b13b10fe89e268b7bf29
parent5a5e31150c9ecdb76d3f87ed852f5c650d70c7d2
regulator: mt6359: Get rid of linear_range tables

The MT6359_BUCK and MT6359_LDO_LINEAR macros setup both
linear settings (min_uV, uV_step, linear_min_sel) and linar_range
(linear_ranges, n_linear_ranges) settings.
All the linear range tables actually only has one entry.
Let's simplify it by using linear instead of linear range.

The linear_min_sel setting is 0 for all cases, remove it
from the macros.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20210606065052.1417111-3-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mt6359-regulator.c