aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/88pm800.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-10-10 21:30:24 -0400
committerMark Brown <broonie@linaro.org>2013-10-11 07:49:12 -0400
commite277e656804c85a0729d4fd8cdd3c8ab3e6b3b86 (patch)
treea92f29fb7c735cb4cf918059d1773d5110a38bf3 /drivers/regulator/88pm800.c
parent813de3c649d6c6ff14c930de9fcd161c0062fabd (diff)
regulator: Remove max_uV from struct regulator_linear_range
linear ranges means each range has linear voltage settings. So we can calculate max_uV for each linear range in regulator core rather than set the max_uV field in drivers. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/88pm800.c')
-rw-r--r--drivers/regulator/88pm800.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/regulator/88pm800.c b/drivers/regulator/88pm800.c
index 3459f60dcfd1..22ba4c4280ee 100644
--- a/drivers/regulator/88pm800.c
+++ b/drivers/regulator/88pm800.c
@@ -141,18 +141,16 @@ struct pm800_regulators {
141 141
142/* Ranges are sorted in ascending order. */ 142/* Ranges are sorted in ascending order. */
143static const struct regulator_linear_range buck1_volt_range[] = { 143static const struct regulator_linear_range buck1_volt_range[] = {
144 { .min_uV = 600000, .max_uV = 1587500, .min_sel = 0, .max_sel = 0x4f, 144 { .min_uV = 600000, .min_sel = 0, .max_sel = 0x4f, .uV_step = 12500 },
145 .uV_step = 12500 }, 145 { .min_uV = 1600000, .min_sel = 0x50, .max_sel = 0x54,
146 { .min_uV = 1600000, .max_uV = 1800000, .min_sel = 0x50, 146 .uV_step = 50000 },
147 .max_sel = 0x54, .uV_step = 50000 },
148}; 147};
149 148
150/* BUCK 2~5 have same ranges. */ 149/* BUCK 2~5 have same ranges. */
151static const struct regulator_linear_range buck2_5_volt_range[] = { 150static const struct regulator_linear_range buck2_5_volt_range[] = {
152 { .min_uV = 600000, .max_uV = 1587500, .min_sel = 0, .max_sel = 0x4f, 151 { .min_uV = 600000, .min_sel = 0, .max_sel = 0x4f, .uV_step = 12500 },
153 .uV_step = 12500 }, 152 { .min_uV = 1600000, .min_sel = 0x50, .max_sel = 0x72,
154 { .min_uV = 1600000, .max_uV = 3300000, .min_sel = 0x50, 153 .uV_step = 50000 },
155 .max_sel = 0x72, .uV_step = 50000 },
156}; 154};
157 155
158static const unsigned int ldo1_volt_table[] = { 156static const unsigned int ldo1_volt_table[] = {