Skip to content

Commit 70c7ac7

Browse files
ndrs-pstcarlescufi
authored andcommitted
drivers: i2c: correct spelling
Employ a code spell checking tool to scan and correct spelling errors in all files within the drivers/i2c directory. Signed-off-by: Pisit Sawangvonganan <[email protected]>
1 parent ca12fd1 commit 70c7ac7

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

drivers/i2c/Kconfig.dw

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ config I2C_DW_LPSS_DMA
1818
select DMA
1919
select DMA_INTEL_LPSS
2020
help
21-
This option enables I2C DMA feature to be used for asynchrounous
22-
data transfers. All Tx operaton are done using dma channel 0 and
21+
This option enables I2C DMA feature to be used for asynchronous
22+
data transfers. All Tx operations are done using dma channel 0 and
2323
all Rx operations are done using dma channel 1.

drivers/i2c/i2c_dw.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ int32_t i2c_dw_idma_tx_transfer(const struct device *dev,
187187
}
188188

189189
if (dma_start(rom->dma_dev, DMA_INTEL_LPSS_TX_CHAN)) {
190-
LOG_DBG("Error trnasfer");
190+
LOG_DBG("Error transfer");
191191
return -EIO;
192192
}
193193
i2c_dw_enable_idma(dev, true);
@@ -909,7 +909,7 @@ static int i2c_dw_set_slave_mode(const struct device *dev, uint8_t addr)
909909
write_tx_tl(0, reg_base);
910910
write_rx_tl(0, reg_base);
911911

912-
LOG_DBG("I2C: Host registed as Slave Device");
912+
LOG_DBG("I2C: Host registered as Slave Device");
913913

914914
return 0;
915915
}

drivers/i2c/i2c_ifx_xmc4.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static int ifx_xmc4_i2c_transfer(const struct device *dev, struct i2c_msg *msg,
194194
XMC_I2C_CH_ClearStatusFlag(config->i2c, 0xFFFFFFFF);
195195

196196
if ((msg_index == 0) || (msg[msg_index].flags & I2C_MSG_RESTART)) {
197-
/* Send START conditon */
197+
/* Send START condition */
198198
cmd_type = ((msg[msg_index].flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) ?
199199
XMC_I2C_CH_CMD_READ : XMC_I2C_CH_CMD_WRITE;
200200

@@ -272,7 +272,7 @@ static int ifx_xmc4_i2c_transfer(const struct device *dev, struct i2c_msg *msg,
272272
}
273273
}
274274

275-
/* Send STOP conditon */
275+
/* Send STOP condition */
276276
if (msg[msg_index].flags & I2C_MSG_STOP) {
277277
XMC_I2C_CH_MasterStop(config->i2c);
278278
}

drivers/i2c/i2c_ite_enhance.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@ static void target_i2c_isr_dma(const struct device *dev,
10111011
&rdata, &len);
10121012

10131013
if (len > CONFIG_I2C_TARGET_IT8XXX2_MAX_BUF_SIZE) {
1014-
LOG_ERR("The bufffer size exceeds "
1014+
LOG_ERR("The buffer size exceeds "
10151015
"I2C_TARGET_IT8XXX2_MAX_BUF_SIZE: len=%d",
10161016
len);
10171017
} else {

drivers/i2c/i2c_ll_stm32_v1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ static int32_t stm32_i2c_msg_read(const struct device *dev, struct i2c_msg *msg,
899899
}
900900
}
901901
/* ADDR must be cleared before NACK generation. Either in 2 byte reception
902-
* byte 1 will be NACK'ed and slave wont sent the last byte
902+
* byte 1 will be NACK'ed and slave won't sent the last byte
903903
*/
904904
LL_I2C_ClearFlag_ADDR(i2c);
905905
if (len == 1U) {

drivers/i2c/i2c_npcx_controller.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ static void i2c_ctrl_target_isr(const struct device *dev, uint8_t status)
801801
/* Clear NMATCH Bit */
802802
inst->SMBST = BIT(NPCX_SMBST_NMATCH);
803803

804-
/* Distinguish tje direction of i2c target mode by reading XMIT bit */
804+
/* Distinguish the direction of i2c target mode by reading XMIT bit */
805805
if (IS_BIT_SET(inst->SMBST, NPCX_SMBST_XMIT)) {
806806
/* Start transmitting data in i2c target mode */
807807
data->oper_state = NPCX_I2C_WRITE_FIFO;

drivers/i2c/i2c_npcx_controller.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ int npcx_i2c_ctrl_transfer(const struct device *i2c_dev, struct i2c_msg *msgs,
7070
uint8_t num_msgs, uint16_t addr, uint8_t port);
7171

7272
/**
73-
* @brief Toggle the SCL to generate maxmium 9 clocks until the target release
73+
* @brief Toggle the SCL to generate maximum 9 clocks until the target release
7474
* the SDA line and send a STOP condition.
7575
*
7676
* @param i2c_dev Pointer to the device structure for i2c controller instance.

0 commit comments

Comments
 (0)