]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/ddi: Make all the PORT_WIDTH macros work the same way
authorImre Deak <imre.deak@intel.com>
Fri, 14 Feb 2025 14:19:53 +0000 (16:19 +0200)
committerImre Deak <imre.deak@intel.com>
Fri, 14 Feb 2025 19:39:05 +0000 (21:39 +0200)
commitdcac00e4d6fdddadde1d5147d1f414f467356077
tree548aac97c6aaedbc6a45584d6880ee115664eab5
parentb2ecdabe46d23db275f94cd7c46ca414a144818b
drm/i915/ddi: Make all the PORT_WIDTH macros work the same way

Make the PORT_WIDTH macro of the XELPDP_PORT_CTL1 register work the same
way as those used for the DDI_BUF_CTL and the TRANS_DDI_FUNC_CTL
registers: accept a width parameter and convert it to the given
register's encoding.

v2: Robustify macro calls with parens. (Jani)

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250214142001.552916-4-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h
drivers/gpu/drm/i915/display/intel_ddi.c