drm/i915/icl: replace check for combo phy
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 14 Nov 2018 01:15:07 +0000 (17:15 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Fri, 16 Nov 2018 00:36:57 +0000 (16:36 -0800)
commit6233016484c0217cb1dbf323f1e439e519a59906
treef8bc0c0934e899459bb3a73852c88224d2ae609d
parent0a8853811dd6c2ab7f65b3afad927ac7a9332e63
drm/i915/icl: replace check for combo phy

These are the only places that assume ports A and B are the ones with
combo phy.  Let's use intel_port_is_combophy() there to make sure
it checks for combo phy ports the same way everywhere.

v2: define for_each_combo_port() helper to check the ports

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181114011509.3667-1-lucas.demarchi@intel.com
drivers/gpu/drm/i915/intel_combo_phy.c