Skip to contentSkip to conversation

of: fix typos in comments

PATCH In review Hemanth Selam 2 participants 3 messages Sep 7 – Sep 9 Device tree

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 of: 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/of/base.c        | 2 +-
 drivers/of/fdt_address.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/of/base.c +1 -1
index d71ae0449360..9e249286be71 100644
@@ -700,7 +700,7 @@ static struct device_node *__of_get_next_child(const struct device_node *node,
 	     child = __of_get_next_child(parent, child))
 
 /**
- * of_get_next_child - Iterate a node childs
+ * of_get_next_child - Iterate a node children
  * @node:	parent node
  * @prev:	previous child of the parent node, or NULL to get first
  *
drivers/of/fdt_address.c +1 -1
index f358d2c80754..2e4e46a58cb6 100644
@@ -172,7 +172,7 @@ static u64 __init fdt_translate_address(const void *blob, int node_offset)
 		goto bail;
 	bus = &of_busses[0];
 
-	/* Cound address cells & copy address locally */
+	/* Count address cells & copy address locally */
 	bus->count_cells(blob, parent, &na, &ns);
 	if (!OF_CHECK_COUNTS(na, ns)) {
 		pr_err("Bad cell count for %s\n",
Signature · 1 line
2.48.1
maintainer
#1 lore raw
Quoted 17 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
---
 drivers/of/base.c        | 2 +-
 drivers/of/fdt_address.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/of/base.c +0 -0
index d71ae0449360..9e249286be71 100644

drivers/of/base.c static struct device_node *__of_get_next_child(const struct device_node *node, · line 703

Quoted 5 lines
drivers/of/base.c +1 -1
@@ -700,7 +700,7 @@ static struct device_node *__of_get_next_child(const struct device_node *node,
             child = __of_get_next_child(parent, child))
 
 /**
- * of_get_next_child - Iterate a node childs
+ * of_get_next_child - Iterate a node children

Still does not make sense.

Rob

#2 lore raw
Quoted 1 line · Rob Herring

Still does not make sense.

You are right. "Iterate a node children" is no better than "Iterate a node childs": I replaced the word checkpatch flagged without fixing the sentence, which was the actual problem. Dropping this patch.

Thanks for the review.

Hemanth