Skip to contentSkip to conversation

drm/bridge: Fix returned array size name for atomic_get_input_bus_fmts kdoc

PATCH Applied Liu Ying 3 participants 3 messages Mar 14, 2023 – Mar 15, 2023

Subsystems (3)
lore
Share & tools
lore

Liu Ying

author
#0 lore raw

PATCH v2 1/1 drm/bridge: Fix returned array size name for atomic_get_input_bus_fmts kdoc

The returned array size for input formats is set through atomic_get_input_bus_fmts()'s 'num_input_fmts' argument, so use 'num_input_fmts' to represent the array size in the function's kdoc, not 'num_output_fmts'.

Fixes 91ea83306bfa ("drm/bridge: Fix the bridge kernel doc")
Fixes f32df58acc68 ("drm/bridge: Add the necessary bits to support bus format negotiation")

---
v1->v2:
* Correct Fixes tag format.
* Copy DRM bridge driver maintainers.
* Copy Boris.

 include/drm/drm_bridge.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/drm/drm_bridge.h +2 -2
index 42f86327b40a..bf964cdfb330 100644
@@ -423,11 +423,11 @@ struct drm_bridge_funcs {
 	 *
 	 * The returned array must be allocated with kmalloc() and will be
 	 * freed by the caller. If the allocation fails, NULL should be
-	 * returned. num_output_fmts must be set to the returned array size.
+	 * returned. num_input_fmts must be set to the returned array size.
 	 * Formats listed in the returned array should be listed in decreasing
 	 * preference order (the core will try all formats until it finds one
 	 * that works). When the format is not supported NULL should be
-	 * returned and num_output_fmts should be set to 0.
+	 * returned and num_input_fmts should be set to 0.
 	 *
 	 * This method is called on all elements of the bridge chain as part of
 	 * the bus format negotiation process that happens in
Signature · 1 line
2.37.1
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 37 lines · Liu Ying

The returned array size for input formats is set through atomic_get_input_bus_fmts()'s 'num_input_fmts' argument, so use 'num_input_fmts' to represent the array size in the function's kdoc, not 'num_output_fmts'.

Fixes 91ea83306bfa ("drm/bridge: Fix the bridge kernel doc")
Fixes f32df58acc68 ("drm/bridge: Add the necessary bits to support bus format negotiation")

---
v1->v2:
* Correct Fixes tag format.
* Copy DRM bridge driver maintainers.
* Copy Boris.

 include/drm/drm_bridge.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/drm/drm_bridge.h +2 -3
index 42f86327b40a..bf964cdfb330 100644
@@ -423,11 +423,11 @@ struct drm_bridge_funcs {
         *
         * The returned array must be allocated with kmalloc() and will be
         * freed by the caller. If the allocation fails, NULL should be
-        * returned. num_output_fmts must be set to the returned array size.
+        * returned. num_input_fmts must be set to the returned array size.
         * Formats listed in the returned array should be listed in decreasing
         * preference order (the core will try all formats until it finds one
         * that works). When the format is not supported NULL should be
-        * returned and num_output_fmts should be set to 0.
+        * returned and num_input_fmts should be set to 0.
         *
         * This method is called on all elements of the bridge chain as part of
         * the bus format negotiation process that happens in
--
Quoted 2 lines

2.37.1

maintainer Applied
#2 lore raw
In reply to Liu Ying

Hi,

Quoted 6 lines · Liu Ying

The returned array size for input formats is set through atomic_get_input_bus_fmts()'s 'num_input_fmts' argument, so use 'num_input_fmts' to represent the array size in the function's kdoc, not 'num_output_fmts'.

Thanks, Applied to https://anongit.freedesktop.org/git/drm/drm-misc.git (drm-misc-fixes)

[1/1] drm/bridge: Fix returned array size name for atomic_get_input_bus_fmts kdoc

      https://cgit.freedesktop.org/drm/drm-misc/commit/?id=0d3c9333d976af41d7dbc6bf4d9d2e95fbdf9c89
Signature · 1 line
Neil