docs: kdoc: directly access the always-there KdocItem fields
authorJonathan Corbet <corbet@lwn.net>
Wed, 2 Jul 2025 19:55:56 +0000 (13:55 -0600)
committerJonathan Corbet <corbet@lwn.net>
Tue, 15 Jul 2025 19:43:30 +0000 (13:43 -0600)
commitbd5628bf60abd6f283d1fd8bdcff45c272971c6b
treea31bac3ffbab5869b30cb6aa36ea54e3a64c814c
parent08b8dc43d18d5d0c4791cc630d5cddf98eaa51ea
docs: kdoc: directly access the always-there KdocItem fields

They are part of the interface, so use them directly.  This allows the
removal of the transitional __dict__ hack in KdocItem.

Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/lib/kdoc/kdoc_item.py
scripts/lib/kdoc/kdoc_output.py