diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-07-02 13:24:59 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-07-02 13:24:59 -0400 |
commit | 744c62eb65a1c3bb2196ded1a1d2922cf6f2ce80 (patch) | |
tree | e7c47e2e9aa8f6184cb5b20bde2e4fda96a3bb59 /drivers/regulator | |
parent | f141822b15635daa94610c5527806fa315f59f4d (diff) | |
parent | 6887a4131da3adaab011613776d865f4bcfb5678 (diff) |
Merge tag 'v3.5-rc5' into regulator-drivers
Linux 3.5-rc5 collides with further development.
Conflicts:
drivers/regulator/tps65023-regulator.c
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/palmas-regulator.c | 7 | ||||
-rw-r--r-- | drivers/regulator/tps6524x-regulator.c | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c index 6c485116dd2a..7540c95321ce 100644 --- a/drivers/regulator/palmas-regulator.c +++ b/drivers/regulator/palmas-regulator.c | |||
@@ -667,7 +667,9 @@ static __devinit int palmas_probe(struct platform_device *pdev) | |||
667 | pmic->desc[id].ops = &palmas_ops_smps10; | 667 | pmic->desc[id].ops = &palmas_ops_smps10; |
668 | pmic->desc[id].vsel_reg = PALMAS_SMPS10_CTRL; | 668 | pmic->desc[id].vsel_reg = PALMAS_SMPS10_CTRL; |
669 | pmic->desc[id].vsel_mask = SMPS10_VSEL; | 669 | pmic->desc[id].vsel_mask = SMPS10_VSEL; |
670 | pmic->desc[id].enable_reg = PALMAS_SMPS10_STATUS; | 670 | pmic->desc[id].enable_reg = |
671 | PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, | ||
672 | PALMAS_SMPS10_STATUS); | ||
671 | pmic->desc[id].enable_mask = SMPS10_BOOST_EN; | 673 | pmic->desc[id].enable_mask = SMPS10_BOOST_EN; |
672 | pmic->desc[id].min_uV = 3750000; | 674 | pmic->desc[id].min_uV = 3750000; |
673 | pmic->desc[id].uV_step = 1250000; | 675 | pmic->desc[id].uV_step = 1250000; |
@@ -739,7 +741,8 @@ static __devinit int palmas_probe(struct platform_device *pdev) | |||
739 | 741 | ||
740 | pmic->desc[id].type = REGULATOR_VOLTAGE; | 742 | pmic->desc[id].type = REGULATOR_VOLTAGE; |
741 | pmic->desc[id].owner = THIS_MODULE; | 743 | pmic->desc[id].owner = THIS_MODULE; |
742 | pmic->desc[id].enable_reg = palmas_regs_info[id].ctrl_addr; | 744 | pmic->desc[id].enable_reg = PALMAS_BASE_TO_REG(PALMAS_LDO_BASE, |
745 | palmas_regs_info[id].ctrl_addr); | ||
743 | pmic->desc[id].enable_mask = PALMAS_LDO1_CTRL_MODE_ACTIVE; | 746 | pmic->desc[id].enable_mask = PALMAS_LDO1_CTRL_MODE_ACTIVE; |
744 | 747 | ||
745 | if (pdata && pdata->reg_data) | 748 | if (pdata && pdata->reg_data) |
diff --git a/drivers/regulator/tps6524x-regulator.c b/drivers/regulator/tps6524x-regulator.c index b88b3df82381..1b299aacf22f 100644 --- a/drivers/regulator/tps6524x-regulator.c +++ b/drivers/regulator/tps6524x-regulator.c | |||
@@ -482,7 +482,7 @@ static int get_voltage_sel(struct regulator_dev *rdev) | |||
482 | info = &supply_info[rdev_get_id(rdev)]; | 482 | info = &supply_info[rdev_get_id(rdev)]; |
483 | 483 | ||
484 | if (info->flags & FIXED_VOLTAGE) | 484 | if (info->flags & FIXED_VOLTAGE) |
485 | return info->fixed_voltage; | 485 | return 0; |
486 | 486 | ||
487 | ret = read_field(hw, &info->voltage); | 487 | ret = read_field(hw, &info->voltage); |
488 | if (ret < 0) | 488 | if (ret < 0) |