summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorDamien Lespiau2015-01-20 13:51:48 +0100
committerDaniel Vetter2015-01-27 09:51:02 +0100
commit2844a9214759901f382086644842e39ad6f7d894 (patch)
tree26e6dcc5b3763242afe986d7cc81744c6ebf6cb3 /drivers/gpu/drm/i915/intel_display.c
parentdrm/i915: Don't use crtc->plane in ILK+ get_config() (diff)
downloadkernel-qcow2-linux-2844a9214759901f382086644842e39ad6f7d894.tar.gz
kernel-qcow2-linux-2844a9214759901f382086644842e39ad6f7d894.tar.xz
kernel-qcow2-linux-2844a9214759901f382086644842e39ad6f7d894.zip
drm/i915: Use pipe_name() in the get_plane_config() functions
We may as well try to be consistent everywhere and know the pipes by their name. Reviewed-By: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index eb9899fcfaac..d94ab6eb07c5 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -6596,9 +6596,10 @@ static void i9xx_get_plane_config(struct intel_crtc *crtc,
plane_config->size = PAGE_ALIGN(fb->pitches[0] * aligned_height);
- DRM_DEBUG_KMS("pipe/plane %d/%d with fb: size=%dx%d@%d, offset=%x, pitch %d, size 0x%x\n",
- pipe, plane, fb->width, fb->height, fb->bits_per_pixel,
- base, fb->pitches[0], plane_config->size);
+ DRM_DEBUG_KMS("pipe/plane %c/%d with fb: size=%dx%d@%d, offset=%x, pitch %d, size 0x%x\n",
+ pipe_name(pipe), plane, fb->width, fb->height,
+ fb->bits_per_pixel, base, fb->pitches[0],
+ plane_config->size);
crtc->base.primary->fb = fb;
}
@@ -7647,9 +7648,10 @@ static void ironlake_get_plane_config(struct intel_crtc *crtc,
plane_config->size = PAGE_ALIGN(fb->pitches[0] * aligned_height);
- DRM_DEBUG_KMS("pipe %d with fb: size=%dx%d@%d, offset=%x, pitch %d, size 0x%x\n",
- pipe, fb->width, fb->height, fb->bits_per_pixel,
- base, fb->pitches[0], plane_config->size);
+ DRM_DEBUG_KMS("pipe %c with fb: size=%dx%d@%d, offset=%x, pitch %d, size 0x%x\n",
+ pipe_name(pipe), fb->width, fb->height,
+ fb->bits_per_pixel, base, fb->pitches[0],
+ plane_config->size);
crtc->base.primary->fb = fb;
}