summaryrefslogtreecommitdiff
path: root/drivers/power/as3722.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/as3722.c')
-rw-r--r--drivers/power/as3722.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/as3722.c b/drivers/power/as3722.c
index 4c6de79..3aafdc9 100644
--- a/drivers/power/as3722.c
+++ b/drivers/power/as3722.c
@@ -31,7 +31,7 @@ static int as3722_read(struct udevice *pmic, u8 reg, u8 *value)
{
int err;
- err = i2c_read(pmic, reg, value, 1);
+ err = dm_i2c_read(pmic, reg, value, 1);
if (err < 0)
return err;
@@ -42,7 +42,7 @@ static int as3722_write(struct udevice *pmic, u8 reg, u8 value)
{
int err;
- err = i2c_write(pmic, reg, &value, 1);
+ err = dm_i2c_write(pmic, reg, &value, 1);
if (err < 0)
return err;