drm/amd/display: Make dce120_tg_is_blanked() more legible
authorTom St Denis <tom.stdenis@amd.com>
Tue, 16 May 2017 14:22:02 +0000 (10:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:07:22 +0000 (18:07 -0400)
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c

index 1c25dc66ff4f7173d60df8d90a48e3727b91f30d..1e2843e5d97e86fc9a56454cc41f301e3b9a8e99 100644 (file)
@@ -746,15 +746,14 @@ bool dce120_tg_is_blanked(struct timing_generator *tg)
                        mmCRTC0_CRTC_BLANK_CONTROL,
                        tg110->offsets.crtc);
 
-       if (
-               get_reg_field_value(
-                       value,
-                       CRTC0_CRTC_BLANK_CONTROL,
-                       CRTC_BLANK_DATA_EN) == 1        &&
-               get_reg_field_value(
-                       value,
-                       CRTC0_CRTC_BLANK_CONTROL,
-                       CRTC_CURRENT_BLANK_STATE) == 1)
+       if (get_reg_field_value(
+               value,
+               CRTC0_CRTC_BLANK_CONTROL,
+               CRTC_BLANK_DATA_EN) == 1 &&
+           get_reg_field_value(
+               value,
+               CRTC0_CRTC_BLANK_CONTROL,
+               CRTC_CURRENT_BLANK_STATE) == 1)
                        return true;
 
        return false;