drm/i915: Reduce duplicated switch cases in hpd code
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 4 Dec 2020 18:23:09 +0000 (20:23 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 15 Dec 2020 21:13:21 +0000 (23:13 +0200)
commit4294fa5f50328eba73a48baf2b4b053e204c68ec
treef5b57d102cc33f6ebbd443b460a79ad3f2b65000
parent7cb917b2b7bbc10cc53f6375f173e8b353593525
drm/i915: Reduce duplicated switch cases in hpd code

With GEN11_HOTPLUG_CTL_LONG_DETECT(), SHOTPLUG_CTL_DDI_HPD_LONG_DETECT()
and ICP_TC_HPD_LONG_DETECT() taking the hpd_pin as their argument
we can remove some duplication in the long_detect() switch statements.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201204182309.14213-1-ville.syrjala@linux.intel.com
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/i915/i915_irq.c