summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_debugfs.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-11-14 14:30:42 +0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-11-14 15:23:44 +0400
commitb378360e8fa4a2f21960747f194c1c7c1f3ae7f9 (patch)
tree67b25d6a8710f1e5f410254604b1a4ddc94a7108 /drivers/gpu/drm/i915/i915_debugfs.c
parentb30324adaf8d2e5950a602bde63030d15a61826f (diff)
downloadlinux-b378360e8fa4a2f21960747f194c1c7c1f3ae7f9.tar.xz
drm/i915: Use for_each_pipe in intel_display_crc_init
We have a nice macro, so use it. Reviewed-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
-rw-r--r--drivers/gpu/drm/i915/i915_debugfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 1dbcc64f9ddb..8362dc154af4 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -3014,10 +3014,10 @@ static struct i915_debugfs_files {
void intel_display_crc_init(struct drm_device *dev)
{
struct drm_i915_private *dev_priv = dev->dev_private;
- int i;
+ enum pipe pipe;
- for (i = 0; i < INTEL_INFO(dev)->num_pipes; i++) {
- struct intel_pipe_crc *pipe_crc = &dev_priv->pipe_crc[i];
+ for_each_pipe(pipe) {
+ struct intel_pipe_crc *pipe_crc = &dev_priv->pipe_crc[pipe];
pipe_crc->opened = false;
spin_lock_init(&pipe_crc->lock);