Skip to contentSkip to conversation

i2c/busses: fix repeated words in comments

PATCH In review wangjianli 2 participants 2 messages Sep 8, 2022 I2C subsystem host drivers

lore
Share & tools
lore

wangjianli

author
#0 lore raw

PATCH 1/1 i2c/busses: fix repeated words in comments

Delete the redundant word 'to'.

---
 drivers/i2c/busses/i2c-viperboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-viperboard.c +1 -1
index 8b5322c3bce0..8f87394abbcf 100644
@@ -318,7 +318,7 @@ static int vprbrd_i2c_xfer(struct i2c_adapter *i2c, struct i2c_msg *msgs,
 			amsg->addr = pmsg->addr;
 			amsg->unknown1 = 0x00;
 			amsg->len = cpu_to_le16(pmsg->len);
-			/* send the addr, the data goes to to board */
+			/* send the addr, the data goes to board */
 			ret = vprbrd_i2c_addr(vb->usb_dev, amsg);
 			if (ret < 0)
 				error = ret;
Signature · 1 line
2.36.1
#1 lore raw

Hi!

The subject is the wrong, you are only fixing one comment and you are only fixing one driver so you could just as well mention that driver explicitly in the prefix with "i2c: viperboard: ...".

Quoted 12 lines · wangjianli

Delete the redundant word 'to'.

---
 drivers/i2c/busses/i2c-viperboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-viperboard.c +0 -0
index 8b5322c3bce0..8f87394abbcf 100644

drivers/i2c/busses/i2c-viperboard.c static int vprbrd_i2c_xfer(struct i2c_adapter *i2c, struct i2c_msg *msgs, · line 321

Quoted 5 lines
drivers/i2c/busses/i2c-viperboard.c +1 -1
@@ -318,7 +318,7 @@ static int vprbrd_i2c_xfer(struct i2c_adapter *i2c, struct i2c_msg *msgs,
 			amsg->addr = pmsg->addr;
 			amsg->unknown1 = 0x00;
 			amsg->len = cpu_to_le16(pmsg->len);
-			/* send the addr, the data goes to to board */
+			/* send the addr, the data goes to board */

I'd change it to "goes to the board" instead.

Cheers,
Peter

Quoted 3 lines
drivers/i2c/busses/i2c-viperboard.c +0 -0
 			ret = vprbrd_i2c_addr(vb->usb_dev, amsg);
 			if (ret < 0)
 				error = ret;