]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/client: s/new_crtc/crtc/
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 28 Feb 2025 21:14:52 +0000 (23:14 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 13 Mar 2025 16:33:31 +0000 (18:33 +0200)
Rename the 'new_crtc' variable to just 'crtc' in
drm_client_firmware_config(). We don't call any of the other
stuff in here new or old so this feels out of place.

v2: Rebase

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250228211454.8138-7-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/drm_client_modeset.c

index 4c64535fb82cb64595b2210a8c555c317dbf5c2b..a0caa2b229dd056e7f1884fe3ea476025d564554 100644 (file)
@@ -658,7 +658,7 @@ retry:
        for (i = 0; i < count; i++) {
                struct drm_connector *connector;
                struct drm_encoder *encoder;
-               struct drm_crtc *new_crtc;
+               struct drm_crtc *crtc;
                const char *mode_type;
 
                connector = connectors[i];
@@ -700,7 +700,7 @@ retry:
 
                num_connectors_enabled++;
 
-               new_crtc = connector->state->crtc;
+               crtc = connector->state->crtc;
 
                /*
                 * Make sure we're not trying to drive multiple connectors
@@ -708,7 +708,7 @@ retry:
                 * match the BIOS.
                 */
                for (j = 0; j < count; j++) {
-                       if (crtcs[j] == new_crtc) {
+                       if (crtcs[j] == crtc) {
                                drm_dbg_kms(dev, "[CONNECTOR:%d:%s] fallback: cloned configuration\n",
                                            connector->base.id, connector->name);
                                goto bail;
@@ -735,7 +735,7 @@ retry:
                if (!modes[i]) {
                        mode_type = "current";
                        mode_replace(dev, &modes[i],
-                                    &new_crtc->state->mode);
+                                    &crtc->state->mode);
                }
 
                /*
@@ -748,11 +748,11 @@ retry:
                        mode_replace(dev, &modes[i],
                                     drm_connector_fallback_non_tiled_mode(connector));
                }
-               crtcs[i] = new_crtc;
+               crtcs[i] = crtc;
 
                drm_dbg_kms(dev, "[CONNECTOR::%d:%s] on [CRTC:%d:%s] using %s mode: %s\n",
                            connector->base.id, connector->name,
-                           new_crtc->base.id, new_crtc->name,
+                           crtc->base.id, crtc->name,
                            mode_type, modes[i]->name);
 
                fallback = false;