aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-07-18 00:31:59 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-08-07 13:10:26 -0400
commit2735daeb161d3eb1ba041158c21ac2a0e42da6a2 (patch)
tree055b19be93fb9b3424f70c7d5109da60b0347a61 /drivers/regulator
parent12565b166dab7966c2991c1561f3c22e9dad5535 (diff)
regulator: palmas: Call palmas_ldo_[read|write] in palmas_ldo_init
Current code uses wrong calls palmas_smps_[read|write] in palmas_ldo_init(), should be palmas_ldo_[read|write] instead. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/palmas-regulator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c
index 9e3e7f3c4086..de68347cbc69 100644
--- a/drivers/regulator/palmas-regulator.c
+++ b/drivers/regulator/palmas-regulator.c
@@ -589,7 +589,7 @@ static int palmas_ldo_init(struct palmas *palmas, int id,
589 589
590 addr = palmas_regs_info[id].ctrl_addr; 590 addr = palmas_regs_info[id].ctrl_addr;
591 591
592 ret = palmas_smps_read(palmas, addr, &reg); 592 ret = palmas_ldo_read(palmas, addr, &reg);
593 if (ret) 593 if (ret)
594 return ret; 594 return ret;
595 595
@@ -599,7 +599,7 @@ static int palmas_ldo_init(struct palmas *palmas, int id,
599 if (reg_init->mode_sleep) 599 if (reg_init->mode_sleep)
600 reg |= PALMAS_LDO1_CTRL_MODE_SLEEP; 600 reg |= PALMAS_LDO1_CTRL_MODE_SLEEP;
601 601
602 ret = palmas_smps_write(palmas, addr, reg); 602 ret = palmas_ldo_write(palmas, addr, reg);
603 if (ret) 603 if (ret)
604 return ret; 604 return ret;
605 605