Skip to contentSkip to conversation

docs: checkpatch: Fix DEVICE_ATTR_WO macro name

PATCH Applied Mauro Codella 3 participants 3 messages Nov 7 – Nov 25

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

PATCH 1/1 docs: checkpatch: Fix DEVICE_ATTR_WO macro name

The DEVICE_ATTR_WO section refers to DEVICE_AATR_WO, which does not exist. Correct the spelling to match the macro in include/linux/device.h.

---
AI assistance: Codex identified the typo and drafted the fix and commit message. I reviewed the change and ran checkpatch.

 Documentation/dev-tools/checkpatch.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/dev-tools/checkpatch.rst +1 -1
index 6139a08c3..f8ab22c18 100644
@@ -389,7 +389,7 @@ API usage
     See: https://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes
 
   **DEVICE_ATTR_WO**
-    The DEVICE_AATR_WO(name) helper macro can be used instead of
+    The DEVICE_ATTR_WO(name) helper macro can be used instead of
     DEVICE_ATTR(name, 0200, NULL, name_store);
 
     Note that the macro automatically appends _store to the
Signature · 1 line
2.56.0
reviewer Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Mauro Codella

The DEVICE_ATTR_WO section refers to DEVICE_AATR_WO, which does not exist. Correct the spelling to match the macro in include/linux/device.h.

Thanks.

Quoted 22 lines

---
AI assistance: Codex identified the typo and drafted the fix and commit message. I reviewed the change and ran checkpatch.

 Documentation/dev-tools/checkpatch.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/dev-tools/checkpatch.rst +1 -1
index 6139a08c3..f8ab22c18 100644
@@ -389,7 +389,7 @@ API usage
     See: https://www.kernel.org/doc/html/latest/driver-api/driver-model/device.html#attributes
 
   **DEVICE_ATTR_WO**
-    The DEVICE_AATR_WO(name) helper macro can be used instead of
+    The DEVICE_ATTR_WO(name) helper macro can be used instead of
     DEVICE_ATTR(name, 0200, NULL, name_store);
 
     Note that the macro automatically appends _store to the
maintainer Applied
#2 lore raw
In reply to Mauro Codella
Quoted 10 lines · Mauro Codella

The DEVICE_ATTR_WO section refers to DEVICE_AATR_WO, which does not exist. Correct the spelling to match the macro in include/linux/device.h.

---
AI assistance: Codex identified the typo and drafted the fix and commit message. I reviewed the change and ran checkpatch.

 Documentation/dev-tools/checkpatch.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

jon