OSDN Git Service

drm/i915: Nuke dev_priv->irq_port[]
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 5 Jul 2018 16:43:53 +0000 (19:43 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 13 Jul 2018 15:22:22 +0000 (18:22 +0300)
commitb6ca3eee18ba1ec97cad54b7f476bcfaca50c17c
tree42b55d2714bbe0869ca9647d0a85f9acb448c12d
parent1a4313d13b69318d11e3418b7193be6add511f69
drm/i915: Nuke dev_priv->irq_port[]

Instead of looping over ports and hpd_pins, let's loop over
the encoders when doing hotplug processing. And instead of
depending on dev_priv->irq_port[] to tell us whether the
encoder has the ->hpd_pulse() hook or not, we can just
check for that directly. So we can just nuke irq_port[] entirely.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180705164357.28512-5-ville.syrjala@linux.intel.com
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_ddi.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_hotplug.c