drivers: i2c_rtio: max32: fix i2c_configure to return 0 on success

To comply with the API definition. This was caught by running i2c_ram
test.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
This commit is contained in:
Luis Ubieda 2025-04-15 10:30:55 -04:00 committed by Benjamin Cabé
commit a6c76c4dd9
2 changed files with 2 additions and 2 deletions

View file

@ -100,7 +100,7 @@ static int api_configure(const struct device *dev, uint32_t dev_cfg)
return -ENOTSUP;
}
return ret;
return ((ret > 0) ? 0 : -EIO);
}
#ifdef CONFIG_I2C_TARGET

View file

@ -97,7 +97,7 @@ static int max32_do_configure(const struct device *dev, uint32_t dev_cfg)
return -ENOTSUP;
}
return ret;
return ((ret > 0) ? 0 : -EIO);
}
static void max32_complete(const struct device *dev, int status);