]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Consolidate two-pixels-per-container check
authorNikola Cornij <nikola.cornij@amd.com>
Thu, 25 Oct 2018 21:02:42 +0000 (17:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Nov 2018 20:27:38 +0000 (15:27 -0500)
commit6263f0fd0626740cb7d68fe1182f16a8b4eb6d37
tree25ade02acc9a6fac2af16e0f8f20f76031d7a528
parent08e1c28dd521c7b08d1b0af0bae9fb22ccc012a4
drm/amd/display: Consolidate two-pixels-per-container check

[why]
The condition to check for two pixels per containter has become rather
long and is used in number of places.

[how]
Move the check to a helper function.

Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
Reviewed-by: Eric Bernstein <Eric.Bernstein@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h