diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-06-25 13:39:13 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-06-25 13:39:13 -0400 |
| commit | bbcaf41118809b2a4b05e69cf298d379ebb734d1 (patch) | |
| tree | debdacc7de009620f39cbae552e701ccef44bcf2 | |
| parent | 5c0a981fb1cacddc9a35dd87ea74045abd640942 (diff) | |
| parent | a68de074613abd028b2ce63366d18db9c29e15d2 (diff) | |
Merge tag 'regulator-3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
Pull regulator fixes from Mark Brown:
"A few small, driver specific bug fixes, nothing exciting here but all
needed if you happen to be using the affected hardware."
* tag 'regulator-3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
regulator: palmas: fix regmap offsets for enable/disable
regulator: tps6524x: Fix get_voltage_sel for fixed voltage
regulator: tps65023: Fix mask for LDOs output voltage select control
| -rw-r--r-- | drivers/regulator/palmas-regulator.c | 7 | ||||
| -rw-r--r-- | drivers/regulator/tps65023-regulator.c | 2 | ||||
| -rw-r--r-- | drivers/regulator/tps6524x-regulator.c | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c index 9b7ca90057d5..795f75a6ac33 100644 --- a/drivers/regulator/palmas-regulator.c +++ b/drivers/regulator/palmas-regulator.c | |||
| @@ -673,7 +673,9 @@ static __devinit int palmas_probe(struct platform_device *pdev) | |||
| 673 | pmic->desc[id].ops = &palmas_ops_smps10; | 673 | pmic->desc[id].ops = &palmas_ops_smps10; |
| 674 | pmic->desc[id].vsel_reg = PALMAS_SMPS10_CTRL; | 674 | pmic->desc[id].vsel_reg = PALMAS_SMPS10_CTRL; |
| 675 | pmic->desc[id].vsel_mask = SMPS10_VSEL; | 675 | pmic->desc[id].vsel_mask = SMPS10_VSEL; |
| 676 | pmic->desc[id].enable_reg = PALMAS_SMPS10_STATUS; | 676 | pmic->desc[id].enable_reg = |
| 677 | PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, | ||
| 678 | PALMAS_SMPS10_STATUS); | ||
| 677 | pmic->desc[id].enable_mask = SMPS10_BOOST_EN; | 679 | pmic->desc[id].enable_mask = SMPS10_BOOST_EN; |
| 678 | } | 680 | } |
| 679 | 681 | ||
| @@ -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/tps65023-regulator.c b/drivers/regulator/tps65023-regulator.c index f841bd0db6aa..8f1be8586c72 100644 --- a/drivers/regulator/tps65023-regulator.c +++ b/drivers/regulator/tps65023-regulator.c | |||
| @@ -71,7 +71,7 @@ | |||
| 71 | 71 | ||
| 72 | /* LDO_CTRL bitfields */ | 72 | /* LDO_CTRL bitfields */ |
| 73 | #define TPS65023_LDO_CTRL_LDOx_SHIFT(ldo_id) ((ldo_id)*4) | 73 | #define TPS65023_LDO_CTRL_LDOx_SHIFT(ldo_id) ((ldo_id)*4) |
| 74 | #define TPS65023_LDO_CTRL_LDOx_MASK(ldo_id) (0x0F << ((ldo_id)*4)) | 74 | #define TPS65023_LDO_CTRL_LDOx_MASK(ldo_id) (0x07 << ((ldo_id)*4)) |
| 75 | 75 | ||
| 76 | /* Number of step-down converters available */ | 76 | /* Number of step-down converters available */ |
| 77 | #define TPS65023_NUM_DCDC 3 | 77 | #define TPS65023_NUM_DCDC 3 |
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) |
