OSDN Git Service

drm/amd/display: implement dc_init_callbacks to assign callback pointers after dc_create
authorWenjing Liu <Wenjing.Liu@amd.com>
Tue, 13 Nov 2018 23:21:53 +0000 (18:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:04:33 +0000 (15:04 -0500)
commitd5cf79eeda52045bc685939b86975944312f688f
treef02d62861c9fd9cd1dcf7d17c5f3c536ed4668dd
parent630cb40ffd4a308e98c334cc9f01640a0ccb0aaa
drm/amd/display: implement dc_init_callbacks to assign callback pointers after dc_create

[why]
Some components depend on dc to constuct
but need to assign callback functions to dc.

[how]
Instead of assigning dc callback functions in dc_create,
decouple the callback init to a standlone function after dc_create. This
is currently a no-op.

Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc.h