Commit 5bf4c9c4 authored by Zhenyu Wang's avatar Zhenyu Wang Committed by Eric Anholt

drm/i915: use encoder_list for hotplug callback

Instead of walking through drm connector_list uses encoder_list
for calling hotplug functions which is consistent with intel display
hotplug reporting.
Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent 903cf20c
...@@ -255,11 +255,11 @@ static void i915_hotplug_work_func(struct work_struct *work) ...@@ -255,11 +255,11 @@ static void i915_hotplug_work_func(struct work_struct *work)
hotplug_work); hotplug_work);
struct drm_device *dev = dev_priv->dev; struct drm_device *dev = dev_priv->dev;
struct drm_mode_config *mode_config = &dev->mode_config; struct drm_mode_config *mode_config = &dev->mode_config;
struct drm_connector *connector; struct drm_encoder *encoder;
if (mode_config->num_connector) { if (mode_config->num_encoder) {
list_for_each_entry(connector, &mode_config->connector_list, head) { list_for_each_entry(encoder, &mode_config->encoder_list, head) {
struct intel_encoder *intel_encoder = to_intel_encoder(connector); struct intel_encoder *intel_encoder = enc_to_intel_encoder(encoder);
if (intel_encoder->hot_plug) if (intel_encoder->hot_plug)
(*intel_encoder->hot_plug) (intel_encoder); (*intel_encoder->hot_plug) (intel_encoder);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment