]> Git Repo - linux.git/commit - drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drm/amd/display: Use DRM helper for best_encoder
authorLeo Li <[email protected]>
Thu, 23 Aug 2018 19:28:08 +0000 (15:28 -0400)
committerAlex Deucher <[email protected]>
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 <[email protected]>
Reviewed-by: David Francis <[email protected]>
Acked-by: Bhawanpreet Lakha <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
This page took 0.055261 seconds and 4 git commands to generate.