Skip to contentSkip to conversation

of: device - Remove duplicate 'of' in two places.

PATCH In review Jiang Jian 2 participants 2 messages Jun 21, 2022 – Jun 27, 2022 Device tree

lore
Share & tools
lore

Jiang Jian

author
#0 lore raw

PATCH 1/1 of: device - Remove duplicate 'of' in two places.

file: ./drivers/of/device.c
line: 22
* @matches: array of of device match structures to search in
changed to
* @matches: array of device match structures to search in

---
 drivers/of/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/of/device.c +1 -1
index 874f031442dc..1582388156a9 100644
@@ -19,7 +19,7 @@
 
 /**
  * of_match_device - Tell if a struct device matches an of_device_id list
- * @matches: array of of device match structures to search in
+ * @matches: array of device match structures to search in
  * @dev: the of device structure to match against
  *
  * Used by a driver to check whether an platform_device present in the
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 16 lines · Jiang Jian

file: ./drivers/of/device.c
line: 22
* @matches: array of of device match structures to search in
changed to
* @matches: array of device match structures to search in

---
 drivers/of/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/of/device.c +0 -0
index 874f031442dc..1582388156a9 100644

drivers/of/device.c line 22

Quoted 5 lines
drivers/of/device.c +1 -1
@@ -19,7 +19,7 @@
 
 /**
  * of_match_device - Tell if a struct device matches an of_device_id list
- * @matches: array of of device match structures to search in
+ * @matches: array of device match structures to search in

Maybe that was supposed to be 'of OF device match'?

But really, something like 'NULL terminated array of struct of_device_id entries to search' would be better.

drivers/of/device.c line 23

Quoted 1 line
drivers/of/device.c +0 -0
  * @dev: the of device structure to match against

Like 'of' here.

Quoted 6 lines
drivers/of/device.c +0 -0
  *
  * Used by a driver to check whether an platform_device present in the
Signature · 1 line
2.17.1