]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61a20b80088e427292bb630928171cd134303c2b
treef8bc0c0934e899459bb3a73852c88224d2ae609d
parentbd3e8bc96b3bb52c693ea5177159f5a308b6629a
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