[PATCH] drm/amd/display: Fix kdoc entry for 'tps' in dc_process_dmub_dpia_set_tps_notification

Chung, ChiaHsuan (Tom) chiahsuan.chung at amd.com
Wed Sep 18 02:49:15 UTC 2024


Reviewed-by: Tom Chung <chiahsuan.chung at amd.com>

On 9/17/2024 9:13 PM, Srinivasan Shanmugam wrote:
> Correct the parameter descriptor for the function
> `dc_process_dmub_dpia_set_tps_notification` to match the actual
> parameters used.
>
> Fixes the below with gcc W=1:
> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:5768: warning: Function parameter or struct member 'tps' not described in 'dc_process_dmub_dpia_set_tps_notification'
> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:5768: warning: Excess function parameter 'ts' description in 'dc_process_dmub_dpia_set_tps_notification'
>
> Cc: Tom Chung <chiahsuan.chung at amd.com>
> Cc: Rodrigo Siqueira <Rodrigo.Siqueira at amd.com>
> Cc: Roman Li <roman.li at amd.com>
> Cc: Alex Hung <alex.hung at amd.com>
> Cc: Aurabindo Pillai <aurabindo.pillai at amd.com>
> Cc: Harry Wentland <harry.wentland at amd.com>
> Cc: Hamza Mahfooz <hamza.mahfooz at amd.com>
> Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam at amd.com>
> ---
>   drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
> index a1652130e4be..5c39390ecbd5 100644
> --- a/drivers/gpu/drm/amd/display/dc/core/dc.c
> +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
> @@ -5760,7 +5760,7 @@ enum dc_status dc_process_dmub_set_mst_slots(const struct dc *dc,
>    *
>    * @dc: [in] dc structure
>    * @link_index: [in] link index
> - * @ts: [in] request tps
> + * @tps: [in] request tps
>    *
>    * Submits set_tps_notification command to dmub via inbox message
>    */


More information about the amd-gfx mailing list