diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-10-10 21:30:24 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-11 07:49:12 -0400 |
commit | e277e656804c85a0729d4fd8cdd3c8ab3e6b3b86 (patch) | |
tree | a92f29fb7c735cb4cf918059d1773d5110a38bf3 /drivers/regulator/as3722-regulator.c | |
parent | 813de3c649d6c6ff14c930de9fcd161c0062fabd (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/as3722-regulator.c')
-rw-r--r-- | drivers/regulator/as3722-regulator.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/regulator/as3722-regulator.c b/drivers/regulator/as3722-regulator.c index d7b71a9c41f1..240ae6d2ee2a 100644 --- a/drivers/regulator/as3722-regulator.c +++ b/drivers/regulator/as3722-regulator.c | |||
@@ -441,7 +441,6 @@ static struct regulator_ops as3722_ldo3_extcntrl_ops = { | |||
441 | .max_sel = _max_sel, \ | 441 | .max_sel = _max_sel, \ |
442 | .uV_step = _step_uV, \ | 442 | .uV_step = _step_uV, \ |
443 | .min_uV = _min_uV, \ | 443 | .min_uV = _min_uV, \ |
444 | .max_uV = _min_uV + (_max_sel - _min_sel) * _step_uV, \ | ||
445 | } | 444 | } |
446 | 445 | ||
447 | static const struct regulator_linear_range as3722_ldo_ranges[] = { | 446 | static const struct regulator_linear_range as3722_ldo_ranges[] = { |