drm/i915: Fix the DDI encoder names
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 17 Nov 2020 15:40:28 +0000 (17:40 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 18 Nov 2020 13:35:07 +0000 (15:35 +0200)
commit83566d13704a2bfe75d0700a445d4ea30de60673
tree0d2918c2e59b6c8c6a39cd93b406b12759a57452
parentb896898c73696a7bbe6af36e8d5e8f394a5013f2
drm/i915: Fix the DDI encoder names

I totally fumbled the ?: usage when generating the DDI encoder
names. Reverse the things that need reversing, and to make it
a bit less messy add a few macros to hide the arithmetic on the
port enums.

Cc: Jani Nikula <jani.nikula@linux.intel.com>
Fixes: 2d709a5a624c ("drm/i915: Give DDI encoders even better names")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201117154028.8516-1-ville.syrjala@linux.intel.com
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/i915/display/intel_ddi.c