Skip to content

Commit a41aa6a

Browse files
Rodrigo Siqueiraalexdeucher
authored andcommitted
drm/amd/display: Add comments to improve the code readability
This commit just introduce some basic comments that helps to understand the overall behavior of some structs. Acked-by: Hamza Mahfooz <[email protected]> Signed-off-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent c896267 commit a41aa6a

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

drivers/gpu/drm/amd/display/dc/inc/core_types.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,9 @@ struct stream_resource {
339339
};
340340

341341
struct plane_resource {
342+
/* scl_data is scratch space required to program a plane */
342343
struct scaler_data scl_data;
344+
/* Below pointers to hw objects are required to enable the plane */
343345
struct hubp *hubp;
344346
struct mem_input *mi;
345347
struct input_pixel_processor *ipp;

drivers/gpu/drm/amd/display/dc/resource/dce80/dce80_resource.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
#include "dce/dce_aux.h"
5757
#include "dce/dce_abm.h"
5858
#include "dce/dce_i2c.h"
59-
/* TODO remove this include */
6059

6160
#ifndef mmMC_HUB_RDREQ_DMIF_LIMIT
6261
#include "gmc/gmc_7_1_d.h"

drivers/gpu/drm/amd/display/dc/resource/dcn201/dcn201_resource.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ static struct _vcs_dpi_soc_bounding_box_st dcn201_soc = {
182182
.socclk_mhz = 1254.0,
183183
.dram_speed_mts = 14000.0,
184184
},
185+
/* state4 is not an actual state, just defines unsupported for dml*/
185186
{
186187
.state = 4,
187188
.dscclk_mhz = 400.0,

0 commit comments

Comments
 (0)