mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] i2c: fix typos and repeated words in comments
@ 2026-09-04 10:50 Hemanth Selam
  2026-09-04 10:50 ` [PATCH 1/2] i2c: busses: fix typos " Hemanth Selam
  2026-09-04 10:50 ` [PATCH 2/2] i2c: fix repeated word 'to' in comment Hemanth Selam
  0 siblings, 2 replies; 3+ messages in thread
From: Hemanth Selam @ 2026-09-04 10:50 UTC (permalink / raw)
  Cc: linux-kernel

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(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] i2c: busses: fix typos in comments
  2026-09-04 10:50 [PATCH 0/2] i2c: fix typos and repeated words in comments Hemanth Selam
@ 2026-09-04 10:50 ` Hemanth Selam
  2026-09-04 10:50 ` [PATCH 2/2] i2c: fix repeated word 'to' in comment Hemanth Selam
  1 sibling, 0 replies; 3+ messages in thread
From: Hemanth Selam @ 2026-09-04 10:50 UTC (permalink / raw)
  To: Andi Shyti, Florian Fainelli, Ray Jui, Scott Branden,
	Broadcom internal kernel review list, Jochen Friedrich,
	Patrice Chotard
  Cc: linux-kernel, linux-i2c, linuxppc-dev, linux-arm-kernel

Fix typos in comments, reported by scripts/checkpatch.pl using the
misspelling list in scripts/spelling.txt.  Only touches comments, no code
changes.

Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
 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(-)

diff --git a/drivers/i2c/busses/i2c-axxia.c b/drivers/i2c/busses/i2c-axxia.c
index 0555eeb6903a..62dc55c146f0 100644
--- a/drivers/i2c/busses/i2c-axxia.c
+++ b/drivers/i2c/busses/i2c-axxia.c
@@ -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 */
diff --git a/drivers/i2c/busses/i2c-bcm-kona.c b/drivers/i2c/busses/i2c-bcm-kona.c
index d4f287b31fd7..0c30821e7b0a 100644
--- a/drivers/i2c/busses/i2c-bcm-kona.c
+++ b/drivers/i2c/busses/i2c-bcm-kona.c
@@ -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
diff --git a/drivers/i2c/busses/i2c-cpm.c b/drivers/i2c/busses/i2c-cpm.c
index 2cb6a233d313..c8b72f14d179 100644
--- a/drivers/i2c/busses/i2c-cpm.c
+++ b/drivers/i2c/busses/i2c-cpm.c
@@ -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 */
diff --git a/drivers/i2c/busses/i2c-st.c b/drivers/i2c/busses/i2c-st.c
index 0a2b43b5577b..873ce2f5a406 100644
--- a/drivers/i2c/busses/i2c-st.c
+++ b/drivers/i2c/busses/i2c-st.c
@@ -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);
-- 
2.48.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/2] i2c: fix repeated word 'to' in comment
  2026-09-04 10:50 [PATCH 0/2] i2c: fix typos and repeated words in comments Hemanth Selam
  2026-09-04 10:50 ` [PATCH 1/2] i2c: busses: fix typos " Hemanth Selam
@ 2026-09-04 10:50 ` Hemanth Selam
  1 sibling, 0 replies; 3+ messages in thread
From: Hemanth Selam @ 2026-09-04 10:50 UTC (permalink / raw)
  To: Andi Shyti; +Cc: linux-kernel, linux-i2c

Drop the second 'to', reported by checkpatch.pl as a possible repeated
word.  Only touches a comment, no code changes.

Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
 drivers/i2c/busses/i2c-viperboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-viperboard.c b/drivers/i2c/busses/i2c-viperboard.c
index f596efcc291c..859d9aa6fad4 100644
--- a/drivers/i2c/busses/i2c-viperboard.c
+++ b/drivers/i2c/busses/i2c-viperboard.c
@@ -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;
-- 
2.48.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-04 10:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-04 10:50 [PATCH 0/2] i2c: fix typos and repeated words in comments Hemanth Selam
2026-09-04 10:50 ` [PATCH 1/2] i2c: busses: fix typos " Hemanth Selam
2026-09-04 10:50 ` [PATCH 2/2] i2c: fix repeated word 'to' in comment Hemanth Selam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®