Skip to content

Commit

Permalink
drm/i915: Use pipe_name() in the get_plane_config() functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Damien Lespiau authored and Daniel Vetter committed Jan 27, 2015
1 parent aeee5a4 commit 2844a92
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 2844a92

Please sign in to comment.