docs: checkpatch: Fix DEVICE_ATTR_WO macro name
Subsystems (3)
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
@@ -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
Quoted 2 lines · Mauro Codella
The
DEVICE_ATTR_WOsection refers toDEVICE_AATR_WO, which does not exist. Correct the spelling to match the macro ininclude/linux/device.h.
Thanks.
Quoted 22 lines
Signed-off-by Mauro Codella <[email protected]>---
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@@ -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
Quoted 10 lines · Mauro Codella
The
DEVICE_ATTR_WOsection refers toDEVICE_AATR_WO, which does not exist. Correct the spelling to match the macro ininclude/linux/device.h.Signed-off-by Mauro Codella <[email protected]>---
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