]> www.infradead.org Git - users/hch/configfs.git/commit
drm/amd/display: Fix incorrect pointer assignment
authorChaitanya Dhere <chaitanya.dhere@amd.com>
Thu, 4 Apr 2024 18:34:04 +0000 (14:34 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Apr 2024 01:24:38 +0000 (21:24 -0400)
commit0a571e8657c40047e6602466abfcb6514a391041
tree3eab3bfa551aa9f9b3f8e9576b86bcc5fc0dd294
parente730c585237eb11f61d3e6555bf47e41c72d0626
drm/amd/display: Fix incorrect pointer assignment

[Why]
Pointer initialization and assignment for dml2_options is not done
correctly. While this works for some compilers, others give an error.

[How]
Modify dc_state_create code to correctly initialize the dml2_opt pointer
and pass it to dml2_create. Also update the code with correct derefrence
operations.

Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Chaitanya Dhere <chaitanya.dhere@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/core/dc_state.c