[PATCH 09/14] drm/i915: Use drm_encoder_mask()
Ville Syrjala
ville.syrjala at linux.intel.com
Fri Jun 15 16:49:20 UTC 2018
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
Replace the hand rolled stuff with drm_encoder_mask() when populating
possible_clones.
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
drivers/gpu/drm/i915/intel_display.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 8251e189a8bb..b095899d68a9 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -13950,13 +13950,10 @@ static int intel_encoder_clones(struct intel_encoder *encoder)
struct drm_device *dev = encoder->base.dev;
struct intel_encoder *source_encoder;
int index_mask = 0;
- int entry = 0;
for_each_intel_encoder(dev, source_encoder) {
if (encoders_cloneable(encoder, source_encoder))
- index_mask |= (1 << entry);
-
- entry++;
+ index_mask |= drm_encoder_mask(&source_encoder->base);
}
return index_mask;
--
2.16.4
More information about the dri-devel
mailing list