From f2b679d4b7c0c14c94268d871d21f234f7a4138f Mon Sep 17 00:00:00 2001 From: Matija Tudan Date: Thu, 25 Feb 2021 23:30:30 +0100 Subject: [PATCH] drivers: dac: dacx3608: fix I2C read error This commit fixes I2C error while reading chip ID in the init function. Signed-off-by: Matija Tudan --- drivers/dac/dac_dacx3608.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dac/dac_dacx3608.c b/drivers/dac/dac_dacx3608.c index d0e36a1876e..0f244026825 100644 --- a/drivers/dac/dac_dacx3608.c +++ b/drivers/dac/dac_dacx3608.c @@ -191,7 +191,7 @@ static int dacx3608_device_id_check(const struct device *dev) uint16_t dev_id; int ret; - ret = dacx3608_reg_read(dev, DACX3608_REG_STATUS_TRIGGER, dev_id); + ret = dacx3608_reg_read(dev, DACX3608_REG_STATUS_TRIGGER, &dev_id); if (ret) { LOG_ERR("Unable to read device ID"); return -EIO;