“d8f95214df1f7c2994a196f9f7777a0b2d8df8eb”上不存在“projects/homeadvisor/imports.yml”
提交 d5cf79ee 编写于 作者: W Wenjing Liu 提交者: Alex Deucher

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: NWenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: NJun Lei <Jun.Lei@amd.com>
Acked-by: NLeo Li <sunpeng.li@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 630cb40f
...@@ -840,6 +840,11 @@ struct dc *dc_create(const struct dc_init_data *init_params) ...@@ -840,6 +840,11 @@ struct dc *dc_create(const struct dc_init_data *init_params)
return NULL; return NULL;
} }
void dc_init_callbacks(struct dc *dc,
const struct dc_callback_init *init_params)
{
}
void dc_destroy(struct dc **dc) void dc_destroy(struct dc **dc)
{ {
destruct(*dc); destruct(*dc);
......
...@@ -339,8 +339,13 @@ struct dc_init_data { ...@@ -339,8 +339,13 @@ struct dc_init_data {
uint32_t log_mask; uint32_t log_mask;
}; };
struct dc *dc_create(const struct dc_init_data *init_params); struct dc_callback_init {
uint8_t reserved;
};
struct dc *dc_create(const struct dc_init_data *init_params);
void dc_init_callbacks(struct dc *dc,
const struct dc_callback_init *init_params);
void dc_destroy(struct dc **dc); void dc_destroy(struct dc **dc);
/******************************************************************************* /*******************************************************************************
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册