]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: remove amdgpu_connector_edid() and stop using edid_blob_ptr
authorJani Nikula <jani.nikula@intel.com>
Fri, 10 May 2024 15:08:11 +0000 (18:08 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 23 May 2024 11:37:24 +0000 (14:37 +0300)
commit42505ab1201918585b2627b171b064193a815c0d
tree44fc46991580112dbf8f45f65e06d9a463be1be1
parent8032e67f79497e4cad26d3d229905b349a2a1c76
drm/amdgpu: remove amdgpu_connector_edid() and stop using edid_blob_ptr

amdgpu_connector_edid() copies the EDID from edid_blob_ptr as a side
effect if amdgpu_connector->edid isn't initialized. However, everywhere
that the returned EDID is used, the EDID should have been set
beforehands.

Only the drm EDID code should look at the EDID property, anyway, so stop
using it.

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Pan
Cc: amd-gfx@lists.freedesktop.org
Reviewed-by: Robert Foss <rfoss@kernel.org>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1463862965d76e9458551598fd4d287a08d3d264.1715353572.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.h
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c