summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps65912-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-10-11 03:30:24 +0200
committerMark Brown <broonie@linaro.org>2013-10-11 13:49:12 +0200
commite277e656804c85a0729d4fd8cdd3c8ab3e6b3b86 (patch)
treea92f29fb7c735cb4cf918059d1773d5110a38bf3 /drivers/regulator/tps65912-regulator.c
parentMerge remote-tracking branch 'regulator/topic/as3722' into regulator-linear (diff)
downloadlinux-e277e656804c85a0729d4fd8cdd3c8ab3e6b3b86.tar.xz
linux-e277e656804c85a0729d4fd8cdd3c8ab3e6b3b86.zip
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/tps65912-regulator.c')
-rw-r--r--drivers/regulator/tps65912-regulator.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/regulator/tps65912-regulator.c b/drivers/regulator/tps65912-regulator.c
index 281e52ac64ba..9fc87d8c9ce5 100644
--- a/drivers/regulator/tps65912-regulator.c
+++ b/drivers/regulator/tps65912-regulator.c
@@ -119,12 +119,9 @@ struct tps65912_reg {
};
static const struct regulator_linear_range tps65912_ldo_ranges[] = {
- { .min_uV = 800000, .max_uV = 1600000, .min_sel = 0, .max_sel = 32,
- .uV_step = 25000 },
- { .min_uV = 1650000, .max_uV = 3000000, .min_sel = 33, .max_sel = 60,
- .uV_step = 50000 },
- { .min_uV = 3100000, .max_uV = 3300000, .min_sel = 61, .max_sel = 63,
- .uV_step = 100000 },
+ { .min_uV = 800000, .min_sel = 0, .max_sel = 32, .uV_step = 25000 },
+ { .min_uV = 1650000, .min_sel = 33, .max_sel = 60, .uV_step = 50000 },
+ { .min_uV = 3100000, .min_sel = 61, .max_sel = 63, .uV_step = 100000 },
};
static int tps65912_get_range(struct tps65912_reg *pmic, int id)