drm/drm_blend: Remove usage of deprecated DRM_DEBUG_ATOMIC
authorSiddh Raman Pant <code@siddh.me>
Mon, 9 Jan 2023 13:00:34 +0000 (18:30 +0530)
committerSimon Ser <contact@emersion.fr>
Tue, 10 Jan 2023 15:14:13 +0000 (16:14 +0100)
drm_print.h says DRM_DEBUG_ATOMIC is deprecated in favor of
drm_dbg_atomic().

Signed-off-by: Siddh Raman Pant <code@siddh.me>
Reviewed-by: Simon Ser <contact@emersion.fr>
Signed-off-by: Simon Ser <contact@emersion.fr>
Link: https://patchwork.freedesktop.org/patch/msgid/1a5b5aa012689572baf561eea0dd0b5934645af5.1673269059.git.code@siddh.me
drivers/gpu/drm/drm_blend.c

index b4c8cab7158c265df52c427b4a66992ff8ccc204..6e74de8334663caabac3edbeed5692e3eb388cdf 100644 (file)
@@ -450,8 +450,8 @@ static int drm_atomic_helper_crtc_normalize_zpos(struct drm_crtc *crtc,
        int i, n = 0;
        int ret = 0;
 
-       DRM_DEBUG_ATOMIC("[CRTC:%d:%s] calculating normalized zpos values\n",
-                        crtc->base.id, crtc->name);
+       drm_dbg_atomic(dev, "[CRTC:%d:%s] calculating normalized zpos values\n",
+                      crtc->base.id, crtc->name);
 
        states = kmalloc_array(total_planes, sizeof(*states), GFP_KERNEL);
        if (!states)
@@ -469,9 +469,8 @@ static int drm_atomic_helper_crtc_normalize_zpos(struct drm_crtc *crtc,
                        goto done;
                }
                states[n++] = plane_state;
-               DRM_DEBUG_ATOMIC("[PLANE:%d:%s] processing zpos value %d\n",
-                                plane->base.id, plane->name,
-                                plane_state->zpos);
+               drm_dbg_atomic(dev, "[PLANE:%d:%s] processing zpos value %d\n",
+                              plane->base.id, plane->name, plane_state->zpos);
        }
 
        sort(states, n, sizeof(*states), drm_atomic_state_zpos_cmp, NULL);
@@ -480,8 +479,8 @@ static int drm_atomic_helper_crtc_normalize_zpos(struct drm_crtc *crtc,
                plane = states[i]->plane;
 
                states[i]->normalized_zpos = i;
-               DRM_DEBUG_ATOMIC("[PLANE:%d:%s] normalized zpos value %d\n",
-                                plane->base.id, plane->name, i);
+               drm_dbg_atomic(dev, "[PLANE:%d:%s] normalized zpos value %d\n",
+                              plane->base.id, plane->name, i);
        }
        crtc_state->zpos_changed = true;