Skip to contentSkip to conversation

pinctrl: fix typos in comments

PATCH In review Hemanth Selam 2 participants 4 messages Sep 4 – Sep 16

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover pinctrl: fix typos in comments

This corrects 2 misspellings 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):
pinctrl: fix typos in comments
pinctrl: fix typo in log message

 drivers/pinctrl/core.c                | 4 ++--
 drivers/pinctrl/pinconf.c             | 2 +-
 drivers/pinctrl/pinctrl-equilibrium.c | 2 +-
 drivers/pinctrl/pinctrl-st.c          | 2 +-
 drivers/pinctrl/pinmux.c              | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)
Signature · 1 line
2.48.1
#1 lore raw

PATCH 1/2 pinctrl: 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.

Assisted-by Cursor:claude-opus-5
---
 drivers/pinctrl/core.c       | 4 ++--
 drivers/pinctrl/pinconf.c    | 2 +-
 drivers/pinctrl/pinctrl-st.c | 2 +-
 drivers/pinctrl/pinmux.c     | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)
drivers/pinctrl/core.c +2 -2
index 1675dd36bd5c..ba6c71e6fc2c 100644
@@ -147,7 +147,7 @@ int pin_get_from_name(struct pinctrl_dev *pctldev, const char *name)
 {
 	unsigned int i, pin;
 
-	/* The pin number can be retrived from the pin controller descriptor */
+	/* The pin number can be retrieved from the pin controller descriptor */
 	for (i = 0; i < pctldev->desc->npins; i++) {
 		struct pin_desc *desc;
 
@@ -1747,7 +1747,7 @@ static int pinctrl_pins_show(struct seq_file *s, void *what)
 
 	mutex_lock(&pctldev->mutex);
 
-	/* The pin number can be retrived from the pin controller descriptor */
+	/* The pin number can be retrieved from the pin controller descriptor */
 	for (i = 0; i < pctldev->desc->npins; i++) {
 		struct pin_desc *desc;
 
drivers/pinctrl/pinconf.c +1 -1
index 81686844dfa5..ecc888b029d7 100644
@@ -311,7 +311,7 @@ static int pinconf_pins_show(struct seq_file *s, void *what)
 
 	mutex_lock(&pctldev->mutex);
 
-	/* The pin number can be retrived from the pin controller descriptor */
+	/* The pin number can be retrieved from the pin controller descriptor */
 	for (i = 0; i < pctldev->desc->npins; i++) {
 		struct pin_desc *desc;
 
drivers/pinctrl/pinctrl-st.c +1 -1
index 8ce88e591f47..59ecc295fb8e 100644
@@ -1148,7 +1148,7 @@ static void st_parse_syscfgs(struct st_pinctrl *info, int bank,
 	pc->pu = st_pc_get_value(dev, regmap, bank/4, data->pu, lsb, msb);
 	pc->od = st_pc_get_value(dev, regmap, bank/4, data->od, lsb, msb);
 
-	/* retime avaiable for all pins by default */
+	/* retime available for all pins by default */
 	pc->rt_pin_mask = 0xff;
 	of_property_read_u32(np, "st,retime-pin-mask", &pc->rt_pin_mask);
 	st_pctl_dt_setup_retime(info, bank, pc);
drivers/pinctrl/pinmux.c +1 -1
index c705bc182266..574fc95b6712 100644
@@ -636,7 +636,7 @@ static int pinmux_pins_show(struct seq_file *s, void *what)
 
 	mutex_lock(&pctldev->mutex);
 
-	/* The pin number can be retrived from the pin controller descriptor */
+	/* The pin number can be retrieved from the pin controller descriptor */
 	for (i = 0; i < pctldev->desc->npins; i++) {
 		struct pin_desc *desc;
 		bool is_hog = false;
Signature · 1 line
2.48.1
maintainer
#2 lore raw
Quoted 6 lines · Hemanth Selam

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

Patches applied. Assisted tags changed to LLM.

Yours,
Linus Walleij

#3 lore raw

PATCH 2/2 pinctrl: fix typo in log message

In reply to Hemanth Selam

Correct the misspelling in a message the user sees, reported by scripts/checkpatch.pl using the list in scripts/spelling.txt.

Only the message text changes, no code changes.

Assisted-by Cursor:claude-opus-5
---
 drivers/pinctrl/pinctrl-equilibrium.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/pinctrl-equilibrium.c +1 -1
index 349eb944b4ac..8e6cd35fc80c 100644
@@ -618,7 +618,7 @@ static int funcs_utils(struct device *dev, struct pinfunction *funcs,
 
 		if (of_property_read_string(np, "function", &fn_name)) {
 			/* some groups may not have function, it's OK */
-			dev_dbg(dev, "Group %s: not function binded!\n",
+			dev_dbg(dev, "Group %s: not function bound!\n",
 				(char *)prop->value);
 			continue;
 		}
Signature · 1 line
2.48.1