Merge branch 'topic/tps51632' of git://git.kernel.org/pub/scm/linux/kernel/git/brooni...
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 28 Nov 2012 19:24:48 +0000 (19:24 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 28 Nov 2012 19:24:48 +0000 (19:24 +0000)
Conflicts:
drivers/regulator/tps51632-regulator.c

1  2 
drivers/regulator/tps51632-regulator.c

@@@ -119,10 -124,11 +119,10 @@@ static int tps51632_dcdc_set_voltage_se
        if (tps->enable_pwm_dvfs)
                reg = TPS51632_VOLTAGE_BASE_REG;
  
 -      vsel = selector + TPS51632_MIN_VSEL;
 -      if (vsel > TPS51632_MAX_VSEL)
 +      if (selector > TPS51632_MAX_VSEL)
                return -EINVAL;
  
-       ret = regmap_write(tps->regmap, TPS51632_VOLTAGE_SELECT_REG, selector);
 -      ret = regmap_write(tps->regmap, reg, vsel);
++      ret = regmap_write(tps->regmap, reg, selector);
        if (ret < 0)
                dev_err(tps->dev, "reg write failed, err %d\n", ret);
        return ret;