]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Call validate_fbc should_enable_fbc
authorHarry Wentland <harry.wentland@amd.com>
Fri, 1 Dec 2017 14:49:46 +0000 (09:49 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Dec 2017 19:47:56 +0000 (14:47 -0500)
commit833c91b97833c2a77b9b3174be8224180ee248ba
treea9ec0f758f7201f7b2f9d64235cb482da305e130
parent21419cac02fa8fb51fd29550526d8053a183444f
drm/amd/display: Call validate_fbc should_enable_fbc

validate_fbc never fails a modeset. It's simply used to decide whether
to use FBC or not. Calling it validate_fbc might be confusing to some so
rename it to should_enable_fbc.

With that let's also remove the DC_STATUS return code and return bool
and make enable_fbc a void function since we never check it's return
value and probably never want to anyways.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c