Re: [PATCH] drm: Remove drm_num_crtcs() helper

2024-02-27 Thread Javier Martinez Canillas
Thierry Reding writes: Hello Thierry, > From: Thierry Reding > > 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

Re: [PATCH] drm: Remove drm_num_crtcs() helper

2024-02-27 Thread Jani Nikula
On Tue, 27 Feb 2024, Thierry Reding wrote: > From: Thierry Reding > > 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 fi

[PATCH] drm: Remove drm_num_crtcs() helper

2024-02-27 Thread Thierry Reding
From: Thierry Reding 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