diff options
| author | Hans de Goede <hdegoede@redhat.com> | 2023-03-12 20:17:48 +0100 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2023-03-31 11:06:41 -0400 |
| commit | f196198cafb8f0f2bedf1d8abc755f791fc03648 (patch) | |
| tree | c7c393358d2c6c9d682eae46f8a8b5d9945324ea /tools/perf/scripts/python | |
| parent | drm/amd/display: Slightly optimize dm_dmub_outbox1_low_irq() (diff) | |
| download | linux-f196198cafb8f0f2bedf1d8abc755f791fc03648.tar.gz linux-f196198cafb8f0f2bedf1d8abc755f791fc03648.zip | |
drm/amd/display/amdgpu_dm: Add a bl_idx to amdgpu_dm_connector
Currently functions like update_connector_ext_caps() and
amdgpu_dm_connector_destroy() are iterating over dm->backlight_link[i]
to find the index of the (optional) backlight_dev associated with
the connector.
Instead make register_backlight_device() store the dm->backlight_dev[]
index used for the connector inside the amdgpu_dm_connector struct.
This removes the need to iterate over the dm->backlight_link[]
array and this is necessary as a preparation patch for moving
the actual backlight_device_register()
call to drm_connector_funcs.late_register.
While reworking update_connector_ext_caps() also remove the aconnector
and aconnector->dc_link NULL checks in this function. These are both
never NULL and are unconditionally derefed in its callers.
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
