Skip to content

Commit 0d3c933

Browse files
Liu Yingsuperna9999
authored andcommitted
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: 91ea833 ("drm/bridge: Fix the bridge kernel doc") Fixes: f32df58 ("drm/bridge: Add the necessary bits to support bus format negotiation") Signed-off-by: Liu Ying <[email protected]> Reviewed-by: Robert Foss <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 2cde14b commit 0d3c933

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/drm/drm_bridge.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,11 +423,11 @@ struct drm_bridge_funcs {
423423
*
424424
* The returned array must be allocated with kmalloc() and will be
425425
* freed by the caller. If the allocation fails, NULL should be
426-
* returned. num_output_fmts must be set to the returned array size.
426+
* returned. num_input_fmts must be set to the returned array size.
427427
* Formats listed in the returned array should be listed in decreasing
428428
* preference order (the core will try all formats until it finds one
429429
* that works). When the format is not supported NULL should be
430-
* returned and num_output_fmts should be set to 0.
430+
* returned and num_input_fmts should be set to 0.
431431
*
432432
* This method is called on all elements of the bridge chain as part of
433433
* the bus format negotiation process that happens in

0 commit comments

Comments
 (0)