提交 7b7d6865 编写于 作者: T Tom St Denis 提交者: Alex Deucher

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

Signed-off-by: NTom St Denis <tom.stdenis@amd.com>
Reviewed-by: NHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 78178dea
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册