]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915: Replace the HAS_DDI() in intel_crtc_scanline_offset() with specific platfor...
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 7 Feb 2025 21:54:06 +0000 (23:54 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 25 Mar 2025 13:47:35 +0000 (15:47 +0200)
commit79ec15a1e952f30fd8980f106d99d8fd42377676
tree0e8c75bd93b1def10c56827f19e87d2a02148ab1
parent9db49526b708a131c866e91238d99f18d25cef94
drm/i915: Replace the HAS_DDI() in intel_crtc_scanline_offset() with specific platform checks

The HDMI vs. not scanline offset stuff no longer applies to the
latest platforms, so using HAS_DDI() is a bit confusing. Replace
with a more specific set of conditions.

Also let's just deal with the platform types in the if ladder
itself, and handle the HDMI vs. not within the specific branch
for those platforms.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250207215406.19348-4-ville.syrjala@linux.intel.com
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
drivers/gpu/drm/i915/display/intel_vblank.c