Commit 2735daeb authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

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: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 12565b16
...@@ -589,7 +589,7 @@ static int palmas_ldo_init(struct palmas *palmas, int id, ...@@ -589,7 +589,7 @@ static int palmas_ldo_init(struct palmas *palmas, int id,
addr = palmas_regs_info[id].ctrl_addr; addr = palmas_regs_info[id].ctrl_addr;
ret = palmas_smps_read(palmas, addr, &reg); ret = palmas_ldo_read(palmas, addr, &reg);
if (ret) if (ret)
return ret; return ret;
...@@ -599,7 +599,7 @@ static int palmas_ldo_init(struct palmas *palmas, int id, ...@@ -599,7 +599,7 @@ static int palmas_ldo_init(struct palmas *palmas, int id,
if (reg_init->mode_sleep) if (reg_init->mode_sleep)
reg |= PALMAS_LDO1_CTRL_MODE_SLEEP; reg |= PALMAS_LDO1_CTRL_MODE_SLEEP;
ret = palmas_smps_write(palmas, addr, reg); ret = palmas_ldo_write(palmas, addr, reg);
if (ret) if (ret)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment