drm/i915: Refactor .hpd_irq_setup() calls a bit
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 6 Oct 2020 18:58:09 +0000 (21:58 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 20 Oct 2020 17:18:53 +0000 (20:18 +0300)
commit5f51e78f0a07102ff22c5b69d85e6b5dd1f9d311
tree0485b030bca2146a71865dd78c8f206e1499074b
parent4c8d46510480a0e0cd92aba5b834bd137e3b4b35
drm/i915: Refactor .hpd_irq_setup() calls a bit

Add a small wrapper for .hpd_irq_setup() which does the
"do we even have the hook?" and "are display interrupts enabled?"
checks.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201006185809.4655-3-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/display/intel_hotplug.c