OSDN Git Service

drm/amd/display: extract cursor FB checks into a function
authorSimon Ser <contact@emersion.fr>
Thu, 3 Dec 2020 20:19:35 +0000 (20:19 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Dec 2020 04:02:11 +0000 (23:02 -0500)
commitb0455fda6dd4e8d31f4ffa198a7ae77b831ac8e7
treeabfabc2e5f6ea538c08f2aae037ba2549e557342
parentcedf788459683b84800fd3ecc63c63e2e3a5be33
drm/amd/display: extract cursor FB checks into a function

As more checks are added, the indentation makes the code harder to read.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Simon Ser <contact@emersion.fr>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Harry Wentland <hwentlan@amd.com>
Cc: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c