Merge remote-tracking branch 'regulator/fix/palmas' into regulator-palmas
authorMark Brown <broonie@linaro.org>
Tue, 24 Jun 2014 11:20:11 +0000 (12:20 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 24 Jun 2014 11:20:11 +0000 (12:20 +0100)
Conflicts:
drivers/regulator/palmas-regulator.c

1  2 
drivers/regulator/palmas-regulator.c

@@@ -465,7 -322,11 +465,11 @@@ static int palmas_set_mode_smps(struct 
        pmic->current_reg_mode[id] = reg & PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK;
        if (rail_enable)
                palmas_smps_write(pmic->palmas,
 -                      palmas_regs_info[id].ctrl_addr, reg);
 +                                ddata->palmas_regs_info[id].ctrl_addr, reg);
+       /* Switch the enable value to ensure this is used for enable */
+       pmic->desc[id].enable_val = pmic->current_reg_mode[id];
        return 0;
  }