docs: nvmem: generate kernel-doc API documentation
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Fri, 1 Dec 2023 13:10:42 +0000 (14:10 +0100)
committerJonathan Corbet <corbet@lwn.net>
Fri, 8 Dec 2023 22:35:32 +0000 (15:35 -0700)
This is useful on its own, and it also enables hyperlink generation for
functions mentioned in ReST documentation.

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20231201-nvmem-docs-kerneldoc-v1-1-3e8f2b706ce6@bootlin.com
Documentation/driver-api/nvmem.rst

index de221e91c8e34d3ec64e8cc94b88f36a6a2ec738..d5655b95c0f414cfc7f9db256a49139a1a4ca2b7 100644 (file)
@@ -200,3 +200,9 @@ and let you add cells dynamically.
 Another use case for layouts is the post processing of cells. With layouts,
 it is possible to associate a custom post processing hook to a cell. It
 even possible to add this hook to cells not created by the layout itself.
+
+9. Internal kernel API
+======================
+
+.. kernel-doc:: drivers/nvmem/core.c
+   :export: