* [PATCH 0/2] docs: nvmem: minor improvements
@ 2023-12-01 13:10 Luca Ceresoli
2023-12-01 13:10 ` [PATCH 1/2] docs: nvmem: generate kernel-doc API documentation Luca Ceresoli
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Luca Ceresoli @ 2023-12-01 13:10 UTC (permalink / raw)
To: Jonathan Corbet; +Cc: Thomas Petazzoni, linux-doc, linux-kernel, Luca Ceresoli
This series contains two small improvements to the NVMEM subsystem
documentation.
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
---
Luca Ceresoli (2):
docs: nvmem: generate kernel-doc API documentation
docs: nvmem: remove function parameters (fixes hyperlink generation)
Documentation/driver-api/nvmem.rst | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
base-commit: 8608dc8b55496087e82db3c955289b71a22735c6
change-id: 20231201-nvmem-docs-kerneldoc-cbe8f9a454c3
Best regards,
--
Luca Ceresoli <luca.ceresoli@bootlin.com>
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 1/2] docs: nvmem: generate kernel-doc API documentation
2023-12-01 13:10 [PATCH 0/2] docs: nvmem: minor improvements Luca Ceresoli
@ 2023-12-01 13:10 ` Luca Ceresoli
2023-12-03 6:04 ` Bagas Sanjaya
2023-12-01 13:10 ` [PATCH 2/2] docs: nvmem: remove function parameters (fixes hyperlink generation) Luca Ceresoli
2023-12-08 22:44 ` [PATCH 0/2] docs: nvmem: minor improvements Jonathan Corbet
2 siblings, 1 reply; 5+ messages in thread
From: Luca Ceresoli @ 2023-12-01 13:10 UTC (permalink / raw)
To: Jonathan Corbet; +Cc: Thomas Petazzoni, linux-doc, linux-kernel, Luca Ceresoli
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>
---
Documentation/driver-api/nvmem.rst | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/driver-api/nvmem.rst b/Documentation/driver-api/nvmem.rst
index de221e91c8e3..d5655b95c0f4 100644
--- a/Documentation/driver-api/nvmem.rst
+++ b/Documentation/driver-api/nvmem.rst
@@ -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:
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] docs: nvmem: generate kernel-doc API documentation
2023-12-01 13:10 ` [PATCH 1/2] docs: nvmem: generate kernel-doc API documentation Luca Ceresoli
@ 2023-12-03 6:04 ` Bagas Sanjaya
0 siblings, 0 replies; 5+ messages in thread
From: Bagas Sanjaya @ 2023-12-03 6:04 UTC (permalink / raw)
To: Luca Ceresoli, Jonathan Corbet
Cc: Thomas Petazzoni, Linux Documentation, Linux Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 1114 bytes --]
On Fri, Dec 01, 2023 at 02:10:42PM +0100, Luca Ceresoli wrote:
> 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>
> ---
> Documentation/driver-api/nvmem.rst | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/Documentation/driver-api/nvmem.rst b/Documentation/driver-api/nvmem.rst
> index de221e91c8e3..d5655b95c0f4 100644
> --- a/Documentation/driver-api/nvmem.rst
> +++ b/Documentation/driver-api/nvmem.rst
> @@ -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:
>
LGTM, thanks!
Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com>
--
An old man doll... just what I always wanted! - Clara
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/2] docs: nvmem: remove function parameters (fixes hyperlink generation)
2023-12-01 13:10 [PATCH 0/2] docs: nvmem: minor improvements Luca Ceresoli
2023-12-01 13:10 ` [PATCH 1/2] docs: nvmem: generate kernel-doc API documentation Luca Ceresoli
@ 2023-12-01 13:10 ` Luca Ceresoli
2023-12-08 22:44 ` [PATCH 0/2] docs: nvmem: minor improvements Jonathan Corbet
2 siblings, 0 replies; 5+ messages in thread
From: Luca Ceresoli @ 2023-12-01 13:10 UTC (permalink / raw)
To: Jonathan Corbet; +Cc: Thomas Petazzoni, linux-doc, linux-kernel, Luca Ceresoli
Adding a parameter is not particularly useful here, and it is definitely
not done elsewhere. It also prevents the generation of a hyperlink to the
kernel-doc documentation. Removing the parameter to enable hyperlinks and
make the style coherent.
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
---
Documentation/driver-api/nvmem.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/driver-api/nvmem.rst b/Documentation/driver-api/nvmem.rst
index d5655b95c0f4..5d9500d21ecc 100644
--- a/Documentation/driver-api/nvmem.rst
+++ b/Documentation/driver-api/nvmem.rst
@@ -41,7 +41,7 @@ A NVMEM provider can register with NVMEM core by supplying relevant
nvmem configuration to nvmem_register(), on success core would return a valid
nvmem_device pointer.
-nvmem_unregister(nvmem) is used to unregister a previously registered provider.
+nvmem_unregister() is used to unregister a previously registered provider.
For example, a simple nvram case::
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] docs: nvmem: minor improvements
2023-12-01 13:10 [PATCH 0/2] docs: nvmem: minor improvements Luca Ceresoli
2023-12-01 13:10 ` [PATCH 1/2] docs: nvmem: generate kernel-doc API documentation Luca Ceresoli
2023-12-01 13:10 ` [PATCH 2/2] docs: nvmem: remove function parameters (fixes hyperlink generation) Luca Ceresoli
@ 2023-12-08 22:44 ` Jonathan Corbet
2 siblings, 0 replies; 5+ messages in thread
From: Jonathan Corbet @ 2023-12-08 22:44 UTC (permalink / raw)
To: Luca Ceresoli; +Cc: Thomas Petazzoni, linux-doc, linux-kernel, Luca Ceresoli
Luca Ceresoli <luca.ceresoli@bootlin.com> writes:
> This series contains two small improvements to the NVMEM subsystem
> documentation.
>
> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
> ---
> Luca Ceresoli (2):
> docs: nvmem: generate kernel-doc API documentation
> docs: nvmem: remove function parameters (fixes hyperlink generation)
>
> Documentation/driver-api/nvmem.rst | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
Applied, thanks.
jon
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-12-08 22:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-01 13:10 [PATCH 0/2] docs: nvmem: minor improvements Luca Ceresoli
2023-12-01 13:10 ` [PATCH 1/2] docs: nvmem: generate kernel-doc API documentation Luca Ceresoli
2023-12-03 6:04 ` Bagas Sanjaya
2023-12-01 13:10 ` [PATCH 2/2] docs: nvmem: remove function parameters (fixes hyperlink generation) Luca Ceresoli
2023-12-08 22:44 ` [PATCH 0/2] docs: nvmem: minor improvements Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).