Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/drm_blend: Remove usage of deprecated DRM_DEBUG_ATOMIC

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

authored by

Siddh Raman Pant and committed by
Simon Ser
fc2602b5 46652809

+6 -7
+6 -7
drivers/gpu/drm/drm_blend.c
··· 450 450 int i, n = 0; 451 451 int ret = 0; 452 452 453 - DRM_DEBUG_ATOMIC("[CRTC:%d:%s] calculating normalized zpos values\n", 454 - crtc->base.id, crtc->name); 453 + drm_dbg_atomic(dev, "[CRTC:%d:%s] calculating normalized zpos values\n", 454 + crtc->base.id, crtc->name); 455 455 456 456 states = kmalloc_array(total_planes, sizeof(*states), GFP_KERNEL); 457 457 if (!states) ··· 469 469 goto done; 470 470 } 471 471 states[n++] = plane_state; 472 - DRM_DEBUG_ATOMIC("[PLANE:%d:%s] processing zpos value %d\n", 473 - plane->base.id, plane->name, 474 - plane_state->zpos); 472 + drm_dbg_atomic(dev, "[PLANE:%d:%s] processing zpos value %d\n", 473 + plane->base.id, plane->name, plane_state->zpos); 475 474 } 476 475 477 476 sort(states, n, sizeof(*states), drm_atomic_state_zpos_cmp, NULL); ··· 479 480 plane = states[i]->plane; 480 481 481 482 states[i]->normalized_zpos = i; 482 - DRM_DEBUG_ATOMIC("[PLANE:%d:%s] normalized zpos value %d\n", 483 - plane->base.id, plane->name, i); 483 + drm_dbg_atomic(dev, "[PLANE:%d:%s] normalized zpos value %d\n", 484 + plane->base.id, plane->name, i); 484 485 } 485 486 crtc_state->zpos_changed = true; 486 487