Skip to content

Commit 3beb66f

Browse files
committed
drivers: i2c: max32: use inclusive terminology
Update comments, log messages, Kconfig prose, and driver-local identifiers to use the controller/target terminology ratified by coding guideline A.2 and already used by the Zephyr I2C API. Identifiers mirroring the ADI MAX32 SDK and datasheet (e.g. MXC_I2C_SlaveTransactionAsync, mxc_i2c_slave_event_t, MXC_I2C_EVT_MASTER_WR) are kept unchanged. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org> Assisted-by: Claude:fable-5
1 parent 231e3c5 commit 3beb66f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/i2c/i2c_max32.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,14 +708,14 @@ static void i2c_max32_isr_target(const struct device *dev, mxc_i2c_regs_t *i2c)
708708
if (int_fl0 & ADI_MAX32_I2C_INT_FL0_ADDR_MATCH) {
709709
/* Address match occurred, prepare for transaction */
710710
if (Wrap_MXC_I2C_GetReadWriteBitStatus(i2c)) {
711-
/* Read request received from the master */
711+
/* Read request received from the controller */
712712
i2c_max32_target_callback(dev, i2c, MXC_I2C_EVT_MASTER_RD);
713713
int_en0 = ADI_MAX32_I2C_INT_EN0_TX_THD |
714714
ADI_MAX32_I2C_INT_EN0_TX_LOCK_OUT |
715715
ADI_MAX32_I2C_INT_EN0_DONE | ADI_MAX32_I2C_INT_EN0_ERR;
716716
int_en1 = ADI_MAX32_I2C_INT_EN1_TX_UNDERFLOW;
717717
} else {
718-
/* Write request received from the master */
718+
/* Write request received from the controller */
719719
i2c_max32_target_callback(dev, i2c, MXC_I2C_EVT_MASTER_WR);
720720
int_en0 = ADI_MAX32_I2C_INT_EN0_RX_THD |
721721
ADI_MAX32_I2C_INT_EN0_DONE | ADI_MAX32_I2C_INT_EN0_ERR;
@@ -938,7 +938,7 @@ static int i2c_max32_init(const struct device *dev)
938938
return ret;
939939
}
940940

941-
ret = MXC_I2C_Init(i2c, 1, 0); /* Configure as master */
941+
ret = MXC_I2C_Init(i2c, 1, 0); /* Configure as controller */
942942
if (ret) {
943943
return ret;
944944
}

drivers/i2c/i2c_max32_rtio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ static int i2c_max32_init(const struct device *dev)
384384
return ret;
385385
}
386386

387-
ret = MXC_I2C_Init(i2c, 1, 0); /* Configure as master */
387+
ret = MXC_I2C_Init(i2c, 1, 0); /* Configure as controller */
388388
if (ret) {
389389
return ret;
390390
}

0 commit comments

Comments
 (0)