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:
parent
242f3e2364
commit
a6c76c4dd9
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue