drm/i915: Add for_each_pipe_masked()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 19 Feb 2016 18:47:31 +0000 (20:47 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 22 Feb 2016 17:28:16 +0000 (19:28 +0200)
commit6831f3e3c640ad4ca3f93601a26ee4ecf210aefa
treef4e5fa63171610be326cc500ff73deafb6574354
parentaae8ba844495473cb11298ad263e26e656e6e4b4
drm/i915: Add for_each_pipe_masked()

for_each_pipe_masked() can be used to iterate over the pipes
included in the user provided pipe mask. Removes a few lines of
duplicated code.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1455907651-16397-2-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c