i2c: fix typos and repeated words in comments
Subsystems (4)
cover i2c: fix typos and repeated words in comments
This corrects 2 misspellings and repeated words in comments. Each is a separate patch so that any one of them can be dropped without touching the rest.
Nothing outside comments changes. Every touched C file was checked by dropping its comments, replacing each string literal with a placeholder and collapsing whitespace; what remained was identical before and after, so the compiled code cannot differ.
The mistakes were found with scripts/checkpatch.pl against the list in scripts/spelling.txt. The scanning, the edits and the changelogs were produced with Cursor running the claude-opus-5 model, from a request to find and fix spelling mistakes across the tree, and every correction was then re-checked by the comparison described above. Words that name an identifier were left alone deliberately, even when they read as typos, because correcting the prose would make the comment disagree with the code it describes.
Tested by building x86_64 defconfig at v7.3-rc1-269-gbc35965f6940, which is clean. Nothing else was built, so any patch touching code that x86_64 defconfig does not compile has been read but not compiled.
Hemanth Selam (2):
i2c: busses: fix typos in comments
i2c: fix repeated word 'to' in comment
drivers/i2c/busses/i2c-axxia.c | 2 +- drivers/i2c/busses/i2c-bcm-kona.c | 2 +- drivers/i2c/busses/i2c-cpm.c | 2 +- drivers/i2c/busses/i2c-st.c | 2 +- drivers/i2c/busses/i2c-viperboard.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/2 i2c: busses: fix typos in comments
Fix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- drivers/i2c/busses/i2c-axxia.c | 2 +- drivers/i2c/busses/i2c-bcm-kona.c | 2 +- drivers/i2c/busses/i2c-cpm.c | 2 +- drivers/i2c/busses/i2c-st.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
drivers/i2c/busses/i2c-axxia.c +1 -1
@@ -60,7 +60,7 @@#define MST_RX_FIFO 0x44#define MST_INT_ENABLE 0x48#define MST_INT_STATUS 0x4c -#define MST_STATUS_RFL (1 << 13)/* RX FIFO serivce */ +#define MST_STATUS_RFL (1 << 13)/* RX FIFO service */ #define MST_STATUS_TFL (1 << 12)/* TX FIFO service */ #define MST_STATUS_SNS (1 << 11)/* Manual mode done */ #define MST_STATUS_SS (1 << 10)/* Automatic mode done */
drivers/i2c/busses/i2c-bcm-kona.c +1 -1
@@ -12,7 +12,7 @@#include <linux/io.h> #include <linux/slab.h> -/* Hardware register offsets and field defintions */ +/* Hardware register offsets and field definitions */ #define CS_OFFSET 0x00000020#define CS_ACK_SHIFT 3#define CS_ACK_MASK 0x00000008
drivers/i2c/busses/i2c-cpm.c +1 -1
@@ -334,7 +334,7 @@ static int cpm_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) tptr++; }/* Start transfer now */ -/* Enable RX/TX/Error interupts */ +/* Enable RX/TX/Error interrupts */ out_8 (&i2c_reg->i2cmr,I2CER_TXE |I2CER_TXB |I2CER_RXB );out_8 (&i2c_reg->i2cer,0xff );/* Clear interrupt status */ /* Chip bug, set enable here */
drivers/i2c/busses/i2c-st.c +1 -1
@@ -256,7 +256,7 @@ static void st_i2c_flush_rx_fifo(struct st_i2c_dev *i2c_dev)static void st_i2c_soft_reset (struct st_i2c_dev *i2c_dev) {/* -* FIFO needs to be emptied before reseting the IP, +* FIFO needs to be emptied before resetting the IP, * else the controller raises a BUSY error. */ st_i2c_flush_rx_fifo (i2c_dev);
Signature · 1 line
2.48.1
PATCH 2/2 i2c: fix repeated word 'to' in comment
In reply to Hemanth SelamDrop the second 'to', reported by checkpatch.pl as a possible repeated word. Only touches a comment, no code changes.
--- drivers/i2c/busses/i2c-viperboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-viperboard.c +1 -1
@@ -317,7 +317,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.48.1