From: Liu Ying Date: Tue, 14 Mar 2023 05:50:35 +0000 (+0800) Subject: drm/bridge: Fix returned array size name for atomic_get_input_bus_fmts kdoc X-Git-Tag: baikal/mips/sdk6.1~142 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=99ab56ed2a2d119f2de940fb7337d9150ce2f614;p=kernel.git drm/bridge: Fix returned array size name for atomic_get_input_bus_fmts kdoc [ Upstream commit 448224382c20b1808984fd58f17bb04d8d3d4424 ] 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: 13193e4b4ac6 ("drm/bridge: Fix the bridge kernel doc") Fixes: 9c842e43118f ("drm/bridge: Add the necessary bits to support bus format negotiation") Signed-off-by: Liu Ying Reviewed-by: Robert Foss Signed-off-by: Neil Armstrong Link: https://patchwork.freedesktop.org/patch/msgid/20230314055035.3731179-1-victor.liu@nxp.com Signed-off-by: Sasha Levin --- diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h index 6b65b0dfb4fb4..288c6feda5de2 100644 --- a/include/drm/drm_bridge.h +++ b/include/drm/drm_bridge.h @@ -447,11 +447,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