drm/i915/ddi: Move platform checks within mtl_ddi_enable/disable_d2d_link()
authorImre Deak <imre.deak@intel.com>
Fri, 14 Feb 2025 14:19:58 +0000 (16:19 +0200)
committerImre Deak <imre.deak@intel.com>
Fri, 14 Feb 2025 19:39:08 +0000 (21:39 +0200)
commit6ebf4419fc19a98690be552eb3d5a4279aa82e6c
treea0df49fdc3990f1a1b25ac4119dd885588a023be
parent3c45d88d281ea87768007ab80c6d1400f6921b05
drm/i915/ddi: Move platform checks within mtl_ddi_enable/disable_d2d_link()

The prefix of the mtl_ddi_enable_d2d() / mtl_ddi_disable_d2d_link()
names show already what are the relevant platforms, so the corresponding
platform check is a detail that can be hidden in the functions, do so.

While at it rename mtl_ddi_disable_d2d_link() to mtl_ddi_disable_d2d()
for symmetry with mtl_ddi_enable_d2d().

v2: s/mtl_ddi_disable_d2d_link/mtl_ddi_disable_d2d (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-9-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c