Skip to content

Commit

Permalink
drm/amd/display: Update BW ALLOCATION Function declaration
Browse files Browse the repository at this point in the history
[WHY & HOW]
Update the declaration to give a better idea of what the
function does.

Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Mustapha Ghaddar <mghaddar@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Mustapha Ghaddar authored and Alex Deucher committed Feb 28, 2023
1 parent 627441f commit 1099238
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions drivers/gpu/drm/amd/display/dc/dc_link.h
Original file line number Diff line number Diff line change
Expand Up @@ -549,16 +549,16 @@ void dc_link_edp_panel_backlight_power_on(struct dc_link *link,
void dc_link_set_usb4_req_bw_req(struct dc_link *link, int req_bw);

/*
* CB function for when the status of the Req above is complete. We will
* find out the result of allocating on CM and update structs accordingly
* Handle function for when the status of the Request above is complete.
* We will find out the result of allocating on CM and update structs.
*
* @link: pointer to the dc_link struct instance
* @bw: Allocated or Estimated BW depending on the result
* @result: Response type
*
* return: none
*/
void dc_link_get_usb4_req_bw_resp(struct dc_link *link, uint8_t bw, uint8_t result);
void dc_link_handle_usb4_bw_alloc_response(struct dc_link *link, uint8_t bw, uint8_t result);

/*
* Handle the USB4 BW Allocation related functionality here:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ bool link_dp_dpia_set_dptx_usb4_bw_alloc_support(struct dc_link *link)
out:
return ret;
}
void dc_link_get_usb4_req_bw_resp(struct dc_link *link, uint8_t bw, uint8_t result)
void dc_link_handle_usb4_bw_alloc_response(struct dc_link *link, uint8_t bw, uint8_t result)
{
if (!get_bw_alloc_proceed_flag((link)))
return;
Expand Down

0 comments on commit 1099238

Please sign in to comment.