]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
i2c: busses: Fix some spelling errors
authorXichao Zhao <zhao.xichao@vivo.com>
Wed, 27 Aug 2025 09:43:44 +0000 (17:43 +0800)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 25 Sep 2025 21:49:08 +0000 (23:49 +0200)
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>
drivers/i2c/busses/i2c-hix5hd2.c
drivers/i2c/busses/i2c-sprd.c
drivers/i2c/busses/i2c-st.c
drivers/i2c/busses/i2c-viperboard.c

index 370f329747637c624cabebb7487c266b4dbcb6f5..5358f5ddf924b84e9e954b6698fd4e30ce2b60b0 100644 (file)
@@ -339,7 +339,7 @@ static int hix5hd2_i2c_xfer_msg(struct hix5hd2_i2c_priv *priv,
        ret = priv->state;
 
        /*
-        * If this is the last message to be transfered (stop == 1)
+        * If this is the last message to be transferred (stop == 1)
         * Then check if the bus can be brought back to idle.
         */
        if (priv->state == HIX5I2C_STAT_RW_SUCCESS && stop)
index 56b2e5c5fb49aa0da9061a9510f24e40a0d56759..26ec34b19ad51a2fd53ee4510e8af62d6887b469 100644 (file)
@@ -425,7 +425,7 @@ static irqreturn_t sprd_i2c_isr(int irq, void *dev_id)
         * If we did not get one ACK from target when writing data, then we
         * should finish this transmission since we got some errors.
         *
-        * When writing data, if i2c_tran == 0 which means we have writen
+        * When writing data, if i2c_tran == 0 which means we have written
         * done all data, then we can finish this transmission.
         *
         * When reading data, if conut < rx fifo full threshold, which
index bf28f8e3ee6bda7ba89130d0fb99449b5dfe8d1c..97d70e66722706f242cd97153387c3a865abc12d 100644 (file)
@@ -152,7 +152,7 @@ struct st_i2c_timings {
 /**
  * struct st_i2c_client - client specific data
  * @addr: 8-bit target addr, including r/w bit
- * @count: number of bytes to be transfered
+ * @count: number of bytes to be transferred
  * @xfered: number of bytes already transferred
  * @buf: data buffer
  * @result: result of the transfer
index 1bd602852e35c1d82f9476f7c837be8cb9a78ee4..f596efcc291c2258ece2df4d43ae2d23c905fc18 100644 (file)
@@ -204,7 +204,7 @@ static int vprbrd_i2c_read(struct vprbrd *vb, struct i2c_msg *msg)
                /* copy the received data */
                memcpy(msg->buf + start, rmsg, len1);
 
-               /* second read transfer if neccessary */
+               /* second read transfer if necessary */
                if (len2 > 0) {
                        ret = vprbrd_i2c_receive(vb->usb_dev, rmsg, len2);
                        if (ret < 0)