We are relying on end-less if-else ladders for a type-c phy capabilities check. Though it made sense when platforms supported legacy type-c support, modern platforms rely on the information passed by vbt. This cleanup restricts the if-else ladder to the platforms supporting legacy type-c phys and relies on vbt info for modern client and discrete platforms. v2: Move cleanup vbt later to handle safe encoder removal Radhakrishna Sripada (4): drm/i915: Move intel_bios_driver_remove later drm/i915: Rename intel_bios_encoder_data_lookup as a port variant drm/i915: Introduce intel_encoder_phy_data_lookup drm/i915: Separate tc check for legacy and non legacy tc phys drivers/gpu/drm/i915/display/g4x_dp.c | 2 +- drivers/gpu/drm/i915/display/g4x_hdmi.c | 2 +- drivers/gpu/drm/i915/display/intel_bios.c | 15 +++++++++- drivers/gpu/drm/i915/display/intel_bios.h | 5 +++- drivers/gpu/drm/i915/display/intel_ddi.c | 2 +- drivers/gpu/drm/i915/display/intel_display.c | 29 ++++++++++++------- .../drm/i915/display/intel_display_device.h | 1 + .../drm/i915/display/intel_display_driver.c | 4 +-- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- 9 files changed, 44 insertions(+), 18 deletions(-) -- 2.34.1