drm/amd/display: Make dce120_tg_is_blanked() more legible

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>
This commit is contained in:
Tom St Denis 2017-05-16 10:22:02 -04:00 committed by Alex Deucher
parent 78178dea7a
commit 7b7d68659e

View 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;