summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2024-02-27 14:20:38 +0300
committerThierry Reding <treding@nvidia.com>2024-02-28 14:18:07 +0300
commit925c70c9b8e59c82a607c952e1f4580c0eae4a1c (patch)
treea5a1571bfd7075eae2a764299044df883ba9c023 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parent0c591381e4462005234f942d9fc36a369c0f5998 (diff)
downloadlinux-925c70c9b8e59c82a607c952e1f4580c0eae4a1c.tar.xz
drm: Remove drm_num_crtcs() helper
The drm_num_crtcs() helper determines the number of CRTCs by iterating over the list of CRTCs that have been registered with the mode config. However, we already keep track of that number in the mode config's num_crtcs field, so we can simply retrieve the value from that and remove the extra helper function. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240227112038.411846-1-thierry.reding@gmail.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions