Use USEC_PER_SEC instead of defining an equivalent local 'us_in_sec'.

Signed-off-by: Christophe JAILLET <christophe.jail...@wanadoo.fr>
---
NOT compile tested. Because of some BROKEN in KConfig files.
Some header may be missing for USEC_PER_SEC!
---
 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c 
b/drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
index eafe8561e55e..9b82ee3e06d0 100644
--- a/drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
+++ b/drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
@@ -678,7 +678,6 @@ static uint32_t get_dmif_switch_time_us(
        uint32_t pixels_per_second;
        uint32_t pixels_per_frame;
        uint32_t refresh_rate;
-       const uint32_t us_in_sec = 1000000;
        const uint32_t min_single_frame_time_us = 30000;
        /*return double of frame time*/
        const uint32_t single_frame_time_multiplier = 2;
@@ -691,8 +690,7 @@ static uint32_t get_dmif_switch_time_us(
        pixels_per_frame = h_total * v_total;
 
        refresh_rate = pixels_per_second / pixels_per_frame;
-
-       frame_time = us_in_sec / refresh_rate;
+       frame_time = USEC_PER_SEC / refresh_rate;
 
        if (frame_time < min_single_frame_time_us)
                frame_time = min_single_frame_time_us;
-- 
2.34.1

Reply via email to