]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit471f25057e441a41ee96e8884c0ffeef37ae20ef
tree54eedd9ae29774d8143f42f789d9a2286d457651
parent51de03f93cffc00b6ebb05b059c7777d03051f4a
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