diff options
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c index 9b4bf9410cb5..9597fc79d7fa 100644 --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c @@ -53,7 +53,7 @@ #include "dce/dce_abm.h" #include "dce/dce_dmcu.h" #include "dce/dce_i2c.h" -#include "dce/dce_panel.h" +#include "dce/dce_panel_cntl.h" #define DC_LOGGER \ dc->ctx->logger @@ -276,16 +276,16 @@ static const struct dce_stream_encoder_mask se_mask = { SE_COMMON_MASK_SH_LIST_DCE110(_MASK) }; -static const struct dce_panel_registers panel_regs[] = { - { DCE_PANEL_REG_LIST() } +static const struct dce_panel_cntl_registers panel_cntl_regs[] = { + { DCE_PANEL_CNTL_REG_LIST() } }; -static const struct dce_panel_shift panel_shift = { - DCE_PANEL_MASK_SH_LIST(__SHIFT) +static const struct dce_panel_cntl_shift panel_cntl_shift = { + DCE_PANEL_CNTL_MASK_SH_LIST(__SHIFT) }; -static const struct dce_panel_mask panel_mask = { - DCE_PANEL_MASK_SH_LIST(_MASK) +static const struct dce_panel_cntl_mask panel_cntl_mask = { + DCE_PANEL_CNTL_MASK_SH_LIST(_MASK) }; static const struct dce110_aux_registers_shift aux_shift = { @@ -686,21 +686,21 @@ static struct link_encoder *dce110_link_encoder_create( return &enc110->base; } -static struct panel *dce110_panel_create(const struct panel_init_data *init_data) +static struct panel_cntl *dce110_panel_cntl_create(const struct panel_cntl_init_data *init_data) { - struct dce_panel *panel = - kzalloc(sizeof(struct dce_panel), GFP_KERNEL); + struct dce_panel_cntl *panel_cntl = + kzalloc(sizeof(struct dce_panel_cntl), GFP_KERNEL); - if (!panel) + if (!panel_cntl) return NULL; - dce_panel_construct(panel, + dce_panel_cntl_construct(panel_cntl, init_data, - &panel_regs[init_data->inst], - &panel_shift, - &panel_mask); + &panel_cntl_regs[init_data->inst], + &panel_cntl_shift, + &panel_cntl_mask); - return &panel->base; + return &panel_cntl->base; } static struct output_pixel_processor *dce110_opp_create( @@ -1233,7 +1233,7 @@ struct stream_encoder *dce110_find_first_free_match_stream_enc_for_link( static const struct resource_funcs dce110_res_pool_funcs = { .destroy = dce110_destroy_resource_pool, .link_enc_create = dce110_link_encoder_create, - .panel_create = dce110_panel_create, + .panel_cntl_create = dce110_panel_cntl_create, .validate_bandwidth = dce110_validate_bandwidth, .validate_plane = dce110_validate_plane, .acquire_idle_pipe_for_layer = dce110_acquire_underlay, |