aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2022-07-06 10:04:15 -0400
committerAlex Deucher <alexander.deucher@amd.com>2022-07-07 15:55:29 -0400
commit30ef0808e61850ec9dd105fe0a21f7f9a7c69324 (patch)
treee57c44f7690b40b35c60d32dbb5c7f0f81f4889f
parentdrm/amd/display: remove set but unused variable (diff)
downloadlinux-dev-30ef0808e61850ec9dd105fe0a21f7f9a7c69324.tar.xz
linux-dev-30ef0808e61850ec9dd105fe0a21f7f9a7c69324.zip
drm/amd/display: make get_refresh_rate() static
It's not used outside of dcn30_resource.c. Reported-by: kernel test robot <lkp@intel.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c
index 4f684235a413..7f01463942fb 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c
@@ -1899,7 +1899,7 @@ validate_out:
return out;
}
-int get_refresh_rate(struct dc_state *context)
+static int get_refresh_rate(struct dc_state *context)
{
int refresh_rate = 0;
int h_v_total = 0;