drm/amd/display: Update BW ALLOCATION Function declaration
authorMustapha Ghaddar <mghaddar@amd.com>
Mon, 13 Feb 2023 13:07:17 +0000 (08:07 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Feb 2023 19:30:00 +0000 (14:30 -0500)
[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>
drivers/gpu/drm/amd/display/dc/dc_link.h
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_dpia_bw.c

index bfe0f68..80e18c7 100644 (file)
@@ -549,8 +549,8 @@ 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
@@ -558,7 +558,7 @@ void dc_link_set_usb4_req_bw_req(struct dc_link *link, int req_bw);
  *
  * 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:
index 9d3df69..72ff0ae 100644 (file)
@@ -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;