docs: kdoc: move the core dispatch into a state table
authorJonathan Corbet <corbet@lwn.net>
Fri, 6 Jun 2025 16:34:31 +0000 (10:34 -0600)
committerJonathan Corbet <corbet@lwn.net>
Mon, 9 Jun 2025 20:37:16 +0000 (14:37 -0600)
commitcef8c781ca71ddd0777d639775e66f8630359342
tree3955a28f2c0686e71bfbeaf95b104e95ef3f63da
parente8f0303e8b8dce911536963c89eaf0a5ccb62d6a
docs: kdoc: move the core dispatch into a state table

Since all of the handlers already nicely have the same prototype, put them
into a table and call them from there and take out the extended
if-then-else series.

Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20250606163438.229916-3-corbet@lwn.net
scripts/lib/kdoc/kdoc_parser.py