Skip to content

Commit 12aad29

Browse files
Xichao ZhaoWolfram Sang
authored andcommitted
i2c: busses: Fix some spelling errors
Fix spelling errors in some comments. Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
1 parent 59ccb81 commit 12aad29

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/i2c/busses/i2c-hix5hd2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ static int hix5hd2_i2c_xfer_msg(struct hix5hd2_i2c_priv *priv,
339339
ret = priv->state;
340340

341341
/*
342-
* If this is the last message to be transfered (stop == 1)
342+
* If this is the last message to be transferred (stop == 1)
343343
* Then check if the bus can be brought back to idle.
344344
*/
345345
if (priv->state == HIX5I2C_STAT_RW_SUCCESS && stop)

drivers/i2c/busses/i2c-sprd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ static irqreturn_t sprd_i2c_isr(int irq, void *dev_id)
425425
* If we did not get one ACK from target when writing data, then we
426426
* should finish this transmission since we got some errors.
427427
*
428-
* When writing data, if i2c_tran == 0 which means we have writen
428+
* When writing data, if i2c_tran == 0 which means we have written
429429
* done all data, then we can finish this transmission.
430430
*
431431
* When reading data, if conut < rx fifo full threshold, which

drivers/i2c/busses/i2c-st.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ struct st_i2c_timings {
152152
/**
153153
* struct st_i2c_client - client specific data
154154
* @addr: 8-bit target addr, including r/w bit
155-
* @count: number of bytes to be transfered
155+
* @count: number of bytes to be transferred
156156
* @xfered: number of bytes already transferred
157157
* @buf: data buffer
158158
* @result: result of the transfer

drivers/i2c/busses/i2c-viperboard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ static int vprbrd_i2c_read(struct vprbrd *vb, struct i2c_msg *msg)
204204
/* copy the received data */
205205
memcpy(msg->buf + start, rmsg, len1);
206206

207-
/* second read transfer if neccessary */
207+
/* second read transfer if necessary */
208208
if (len2 > 0) {
209209
ret = vprbrd_i2c_receive(vb->usb_dev, rmsg, len2);
210210
if (ret < 0)

0 commit comments

Comments
 (0)