regulator: s2mps11: Use sec_reg_write rather than sec_reg_update when mask is 0xff
authorAxel Lin <axel.lin@gmail.com>
Thu, 12 Jul 2012 01:39:10 +0000 (09:39 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 12 Jul 2012 17:07:11 +0000 (18:07 +0100)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/s2mps11.c

index b3c27058f2a6c41a00667f266a3e93c3a4877c3c..4669dc9ac74a3b90afbd68397aa45fb79b409e9f 100644 (file)
@@ -280,8 +280,7 @@ static __devinit int s2mps11_pmic_probe(struct platform_device *pdev)
                        ramp_reg |= get_ramp_delay(s2mps11->ramp_delay2) >> 6;
                if (s2mps11->buck3_ramp || s2mps11->buck4_ramp)
                        ramp_reg |= get_ramp_delay(s2mps11->ramp_delay34) >> 4;
-               sec_reg_update(iodev, S2MPS11_REG_RAMP,
-                       ramp_reg | ramp_enable, 0xff);
+               sec_reg_write(iodev, S2MPS11_REG_RAMP, ramp_reg | ramp_enable);
        }
 
        ramp_reg &= 0x00;
@@ -289,7 +288,7 @@ static __devinit int s2mps11_pmic_probe(struct platform_device *pdev)
        ramp_reg |= get_ramp_delay(s2mps11->ramp_delay16) >> 4;
        ramp_reg |= get_ramp_delay(s2mps11->ramp_delay7810) >> 2;
        ramp_reg |= get_ramp_delay(s2mps11->ramp_delay9);
-       sec_reg_update(iodev, S2MPS11_REG_RAMP_BUCK, ramp_reg, 0xff);
+       sec_reg_write(iodev, S2MPS11_REG_RAMP_BUCK, ramp_reg);
 
        for (i = 0; i < S2MPS11_REGULATOR_MAX; i++) {