drm/i915: refactor ilk display interrupt handling
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 21 Oct 2013 16:04:36 +0000 (18:04 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Oct 2013 10:16:59 +0000 (11:16 +0100)
commit40da17c29be95acf5543c97c8bc2fbb5991c3e39
treee9139eff22b6e89d4997327cbcc4838bc03f35aa
parent3b6c42e82c83da0ea9230c1bbd3390ab4ecf0cb6
drm/i915: refactor ilk display interrupt handling

- Use a for_each_loop and add the corresponding #defines.
- Drop the _ILK postfix on the existing DE_PIPE_VBLANK macro for
  consistency with everything else.
- Also use macros (and add the missing one for plane flips) for the
  ivb display interrupt handler.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
[danvet: Drop the useless parens that Ville spotted.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_reg.h