]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: use for_each_pipe loop to assign crtc_mask
authorMahesh Kumar <mahesh1.kumar@intel.com>
Wed, 19 Sep 2018 08:31:26 +0000 (14:01 +0530)
committerJani Nikula <jani.nikula@intel.com>
Tue, 25 Sep 2018 09:17:27 +0000 (12:17 +0300)
commit5e839f6d765de9b433dc28f0f6d578e241832c68
tree613ce4245de484208723fe7bd846f8dad021f519
parent01d51e0f53d26a7860e39485819a59417c1a6fba
drm/i915: use for_each_pipe loop to assign crtc_mask

This cleanup patch makes changes to use for_each_pipe loop
during bit-mask assignment of allowed crtc with encoder.

changes:
 - use BIT(i) macro instead of (1 << i) (Chris)
changes from V2:
 - use int for consistency (Jani)
changes from V3:
 - instead use enum pipe (Ville)
changes from V4:
 - drop DP/HDMI changes, as already part of patch from ville

Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Mahesh Kumar <mahesh1.kumar@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180919083126.31805-1-mahesh1.kumar@intel.com
drivers/gpu/drm/i915/intel_ddi.c