OSDN Git Service

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)
commita487411a64816458bd4dbac91a1981ec31bb40d4
tree63cbea8f28896b7be898c9aa207a7fb56ec05fee
parent0e8e4fbf8d8905071c045f2922de55adbe1a6abe
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