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 <mtudan@mobilisis.hr>
This commit is contained in:
Matija Tudan 2021-02-25 23:30:30 +01:00 committed by Anas Nashif
commit f2b679d4b7

View file

@ -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;