Skip to content

Commit

Permalink
regulator: palmas: Call palmas_ldo_[read|write] in palmas_ldo_init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Mark Brown committed Aug 7, 2012
1 parent 12565b1 commit 2735dae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/regulator/palmas-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ static int palmas_ldo_init(struct palmas *palmas, int id,

addr = palmas_regs_info[id].ctrl_addr;

ret = palmas_smps_read(palmas, addr, &reg);
ret = palmas_ldo_read(palmas, addr, &reg);
if (ret)
return ret;

Expand All @@ -599,7 +599,7 @@ static int palmas_ldo_init(struct palmas *palmas, int id,
if (reg_init->mode_sleep)
reg |= PALMAS_LDO1_CTRL_MODE_SLEEP;

ret = palmas_smps_write(palmas, addr, reg);
ret = palmas_ldo_write(palmas, addr, reg);
if (ret)
return ret;

Expand Down

0 comments on commit 2735dae

Please sign in to comment.