drm/amd/display: Cleanup code that enables freesync
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Tue, 17 Oct 2017 16:42:58 +0000 (12:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Dec 2017 21:41:29 +0000 (16:41 -0500)
commitf01a2cf0a613c52acf941c764f344aefb8949591
tree803a8f359ff0c12bb5117f5c0e0b0067341018ba
parentbfe1708c80d5d7cf08b7907b1850d2d3bf688db2
drm/amd/display: Cleanup code that enables freesync

This is a follow-up patch to:

Bhawanpreet Lakha    Atomic freesync ASSERT fix

Changes:
- Combine to use one iterator
- Use new DRM iterators.

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c