drm/i915: Reuse <platform>_hotplug_mask() in .hpd_detection_setup()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 17 Apr 2023 13:17:28 +0000 (16:17 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 18 Apr 2023 18:21:36 +0000 (21:21 +0300)
commita823c5a825cf9e49b2e20011cd87d93f949c2a27
treecc18fa5fcf53b133596bc6a593c29183f27906d3
parentcfe5bdfb27fa234505e96f7775d32415ed705f94
drm/i915: Reuse <platform>_hotplug_mask() in .hpd_detection_setup()

Replace the hardcoded masks with just a loop over all hpd
pins using the <platform>_hotplug_mask() functions.

v2: Deal with mtp

Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com> #v1
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230417131728.7705-5-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/i915_irq.c