summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2017-01-10 08:35:47 +1000
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 17:09:23 -0400
commit7d7024ca202c502324dce683f2061b35d113a6aa (patch)
treec7d15f3cdb88ba72d96684779f4ab52a841c2095 /drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c
parent00c91d0d480a0c5f6507da80f7e13dab7e6b7c79 (diff)
downloadlinux-7d7024ca202c502324dce683f2061b35d113a6aa.tar.bz2
drm/amd/display: drop min/max wrappers
These aren't needed, and aren't really used in too many places. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Reviewed-by: Harry Wentland <Harry.Wentland@amd.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c b/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c
index 262612061c68..dd922bdcc145 100644
--- a/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c
+++ b/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c
@@ -289,7 +289,7 @@ static void dce_set_clock(
/* Make sure requested clock isn't lower than minimum threshold*/
if (requested_clk_khz > 0)
- requested_clk_khz = dm_max(requested_clk_khz,
+ requested_clk_khz = max(requested_clk_khz,
clk_dce->dentist_vco_freq_khz / 64);
/* Prepare to program display clock*/
@@ -364,7 +364,7 @@ static void dce112_set_clock(
/* Make sure requested clock isn't lower than minimum threshold*/
if (requested_clk_khz > 0)
- requested_clk_khz = dm_max(requested_clk_khz,
+ requested_clk_khz = max(requested_clk_khz,
clk_dce->dentist_vco_freq_khz / 62);
dce_clk_params.target_clock_frequency = requested_clk_khz;