summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_debugfs.c
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>2015-03-03 15:21:56 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-03-17 22:29:53 +0100
commit3a3371ff0d924270fde978c93eb3921ad544eb79 (patch)
treeb5d939ca9485b0f48c74b04efad95b301c719ec0 /drivers/gpu/drm/i915/i915_debugfs.c
parenta91572f35bda9c39f3d3ac89f0d6e84ae75ae02e (diff)
downloadlwn-3a3371ff0d924270fde978c93eb3921ad544eb79.tar.gz
lwn-3a3371ff0d924270fde978c93eb3921ad544eb79.zip
drm/i915: Add a for_each_intel_connector macro
We have similar macros for crtcs and encoders, and the pattern happens often enough to justify the macro. Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
-rw-r--r--drivers/gpu/drm/i915/i915_debugfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index eef732f81e2f..63aa72152f72 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -2308,8 +2308,7 @@ static int i915_sink_crc(struct seq_file *m, void *data)
u8 crc[6];
drm_modeset_lock_all(dev);
- list_for_each_entry(connector, &dev->mode_config.connector_list,
- base.head) {
+ for_each_intel_encoder(dev, connector) {
if (connector->base.dpms != DRM_MODE_DPMS_ON)
continue;