]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc53d256c0deb471ab6383fcd2064389335b9ebb
tree0d2918c2e59b6c8c6a39cd93b406b12759a57452
parent250f65b50929c9e22c365ffc6e6f538a6eafd403
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: ac0c3d4d4d36 ("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