diff options
author | Anthony Koo <Anthony.Koo@amd.com> | 2020-04-08 13:31:50 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-04-22 18:11:48 -0400 |
commit | d4caa72e275c1920d38a9541b2e4dcc167733734 (patch) | |
tree | 6edbc93a184ea43fcc5aba548d0a43f7c5eea4e6 /drivers/gpu/drm/amd/display/dc/inc | |
parent | drm/amd/display: Add HW rotation cursor changes to dcn10 (diff) | |
download | linux-dev-d4caa72e275c1920d38a9541b2e4dcc167733734.tar.xz linux-dev-d4caa72e275c1920d38a9541b2e4dcc167733734.zip |
drm/amd/display: change from panel to panel cntl
[Why]
it doesn't represent panel specifically, it's more like the control
logic for the panel
[How]
change from panel to panel cntl to make it a bit more clear
Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/inc/core_types.h | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/inc/hw/panel_cntl.h (renamed from drivers/gpu/drm/amd/display/dc/inc/hw/panel.h) | 24 |
2 files changed, 15 insertions, 15 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/core_types.h b/drivers/gpu/drm/amd/display/dc/inc/core_types.h index cb1952ea3170..c7fd702a4a87 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/core_types.h +++ b/drivers/gpu/drm/amd/display/dc/inc/core_types.h @@ -38,7 +38,7 @@ #endif #include "dwb.h" #include "mcif_wb.h" -#include "panel.h" +#include "panel_cntl.h" #define MAX_CLOCK_SOURCES 7 @@ -93,8 +93,8 @@ struct clk_bw_params; struct resource_funcs { void (*destroy)(struct resource_pool **pool); void (*link_init)(struct dc_link *link); - struct panel*(*panel_create)( - const struct panel_init_data *panel_init_data); + struct panel_cntl*(*panel_cntl_create)( + const struct panel_cntl_init_data *panel_cntl_init_data); struct link_encoder *(*link_enc_create)( const struct encoder_init_data *init); bool (*validate_bandwidth)( diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/panel.h b/drivers/gpu/drm/amd/display/dc/inc/hw/panel_cntl.h index 6a4f7f26f04c..5a75d035f1fa 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/hw/panel.h +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/panel_cntl.h @@ -21,33 +21,33 @@ * */ /* - * panel.h + * panel_cntl.h * * Created on: Oct 6, 2015 * Author: yonsun */ -#ifndef DC_PANEL_H_ -#define DC_PANEL_H_ +#ifndef DC_PANEL_CNTL_H_ +#define DC_PANEL_CNTL_H_ #include "dc_types.h" -struct panel_funcs { - void (*destroy)(struct panel **panel); - void (*hw_init)(struct panel *panel); - bool (*is_panel_backlight_on)(struct panel *panel); - bool (*is_panel_powered_on)(struct panel *panel); +struct panel_cntl_funcs { + void (*destroy)(struct panel_cntl **panel_cntl); + void (*hw_init)(struct panel_cntl *panel_cntl); + bool (*is_panel_backlight_on)(struct panel_cntl *panel_cntl); + bool (*is_panel_powered_on)(struct panel_cntl *panel_cntl); }; -struct panel_init_data { +struct panel_cntl_init_data { struct dc_context *ctx; uint32_t inst; }; -struct panel { - const struct panel_funcs *funcs; +struct panel_cntl { + const struct panel_cntl_funcs *funcs; struct dc_context *ctx; uint32_t inst; }; -#endif /* DC_PANEL_H_ */ +#endif /* DC_PANEL_CNTL_H_ */ |