drm/amd/display: ddc resource data need to be initialized
authorYu-ting Shen <Yu-ting.Shen@amd.com>
Tue, 13 Apr 2021 05:47:23 +0000 (13:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Apr 2021 03:35:50 +0000 (23:35 -0400)
commit130ac6d8c69bbecf3331a8427ddb743c6cf4a8f1
tree54eedd9ae29774d8143f42f789d9a2286d457651
parentb7cc1312c110f8760a3d3e8e41a6d84e32f71a61
drm/amd/display: ddc resource data need to be initialized

[WHY]
to initial ddc structure before we use them to avoid error checking.

[HOW]
add 0 as structure initialization value in DCN resource construct

Signed-off-by: Yu-ting Shen <Yu-ting.Shen@amd.com>
Reviewed-by: Meenakshikumar Somasundaram <Meenakshikumar.Somasundaram@amd.com>
Acked-by: Wayne Lin <waynelin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c