drm/amd/display: Use new DRM API where possible
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Thu, 12 Oct 2017 21:15:07 +0000 (17:15 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 17 Oct 2017 00:42:55 +0000 (10:42 +1000)
commit0bc9706db3a35b6d674d0642f425d768560736b2
treefb10b00f7c1a286f9cfd6772513e3fd82883d95e
parent9ba29fcb76a559078491adffc74f66bf92b9dbea
drm/amd/display: Use new DRM API where possible

To conform to DRM's new API, we should not be accessing a DRM object's
internal state directly. Rather, the DRM for_each_old/new_* iterators,
and drm_atomic_get_old/new_* interface should be used.

This is an ongoing process. For now, update the DRM-facing atomic
functions, where the atomic state object is given.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c