drm/amd/display: make calculate watermarks a function pointer
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Wed, 27 May 2020 14:34:38 +0000 (10:34 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:20 +0000 (01:59 -0400)
commitb3ff538cbe9dba6142ede522b796975c6b59a0b7
tree37adf371c7e9d8e8a718d613f21c47d1ce27ab27
parent74a166759d692efe18996076736b61533936892b
drm/amd/display: make calculate watermarks a function pointer

To allow code reuse with minimal duplication watermark
calculation needs to be function pointer.

Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Eric Bernstein <Eric.Bernstein@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/inc/core_types.h