drivers: i2c: Fix deprecated use of I2C_MODE_MASTER in mcux lpi2c driver
The I2C API recently updated terminology to replace "master" with "controller", but this instance in the mcux lpi2c driver was missed. Signed-off-by: Maureen Helm <maureen.helm@intel.com>
This commit is contained in:
parent
87745357ce
commit
c969547527
|
@ -273,7 +273,7 @@ static int mcux_lpi2c_recover_bus(const struct device *dev)
|
|||
|
||||
i2c_bitbang_init(&bitbang_ctx, &bitbang_io, (void *)config);
|
||||
|
||||
bitrate_cfg = i2c_map_dt_bitrate(config->bitrate) | I2C_MODE_MASTER;
|
||||
bitrate_cfg = i2c_map_dt_bitrate(config->bitrate) | I2C_MODE_CONTROLLER;
|
||||
error = i2c_bitbang_configure(&bitbang_ctx, bitrate_cfg);
|
||||
if (error != 0) {
|
||||
LOG_ERR("failed to configure I2C bitbang (err %d)", error);
|
||||
|
|
Loading…
Reference in a new issue