]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Use DRM helper for best_encoder
authorLeo Li <sunpeng.li@amd.com>
Thu, 23 Aug 2018 19:28:08 +0000 (15:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Sep 2018 03:43:31 +0000 (22:43 -0500)
commitd8975f9755ad2acfcdcc587dd77269d33b1e5f15
tree63cbea8f28896b7be898c9aa207a7fb56ec05fee
parent8faf3b2e5ac89fce3bb4d49dd94d5d734420d3d6
drm/amd/display: Use DRM helper for best_encoder

[Why]
Our implementation is functionally identical to DRM's

Note that instead of checking if the provided id is 0, the helper
follows through with the mode object search. However, It will still
return NULL, since 0 is not a valid object id, and missed searches
will return NULL.

[How]
Remove our implementation, and replace it with
drm_atomic_helper_best_encoder.

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