Re: [PATCH] docs: checkpatch: Fix DEVICE_ATTR_WO macro name

From: Joe Perches

Date: Sat Nov 07 2026 - 21:18:29 EST


On Sat, 2026-11-07 at 23:02 +0000, Mauro Codella wrote:
> 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.

Acked-by: Joe Perches <joe@xxxxxxxxxxx>

>
> Signed-off-by: Mauro Codella <mauro.codella@xxxxx>
> ---
> 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(-)
>
> diff --git a/Documentation/dev-tools/checkpatch.rst b/Documentation/dev-tools/checkpatch.rst
> index 6139a08c3..f8ab22c18 100644
> --- a/Documentation/dev-tools/checkpatch.rst
> +++ b/Documentation/dev-tools/checkpatch.rst
> @@ -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