regulator: as3722: Don't set min_uV/uV_step/linear_min_sel for linear_ranges
authorAxel Lin <axel.lin@ingics.com>
Fri, 20 Dec 2013 02:57:49 +0000 (10:57 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 20 Dec 2013 18:31:42 +0000 (18:31 +0000)
These settings are not used when using linear_ranges and it makes the code
looks confusing. Thus remove them.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/as3722-regulator.c

index 5917fe3dc983dc5335d62e393fe079459817d439..fdb31371a2326cbda99a15f1e51686734d1610bd 100644 (file)
@@ -842,9 +842,6 @@ static int as3722_regulator_probe(struct platform_device *pdev)
                                ops = &as3722_ldo_extcntrl_ops;
                        else
                                ops = &as3722_ldo_ops;
-                       as3722_regs->desc[id].min_uV = 825000;
-                       as3722_regs->desc[id].uV_step = 25000;
-                       as3722_regs->desc[id].linear_min_sel = 1;
                        as3722_regs->desc[id].enable_time = 500;
                        as3722_regs->desc[id].linear_ranges = as3722_ldo_ranges;
                        as3722_regs->desc[id].n_linear_ranges =