drm/i915: Consistently use enum pipe for PCH transcoders
authorMatthias Kaehlcke <mka@chromium.org>
Mon, 17 Jul 2017 18:14:03 +0000 (11:14 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 18 Jul 2017 06:39:03 +0000 (08:39 +0200)
commita21960339c8c107eae99d68c85e6355189b22192
treee3e65fbe6453f4185a84be1db2b1101965efdbe6
parentedd9003f7f9dddd28fdd768e6e7569d996c769cb
drm/i915: Consistently use enum pipe for PCH transcoders

The current code uses in some instances enum transcoder for PCH
transcoders and enum pipe in others. This is error prone and clang
raises warnings like this:

drivers/gpu/drm/i915/intel_dp.c:3546:51: warning: implicit conversion
  from enumeration type 'enum pipe' to different enumeration type
  'enum transcoder' [-Wenum-conversion]
    intel_set_pch_fifo_underrun_reporting(dev_priv, PIPE_A, false);

Consistently use the type enum pipe for PCH transcoders.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20170717181403.57324-1-mka@chromium.org
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_fifo_underrun.c