]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Turn intel_digital_port_connected() in a vfunc
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 11 Mar 2020 15:54:20 +0000 (17:54 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 11 May 2020 13:25:15 +0000 (16:25 +0300)
commitedc0e09c6ba81fc7a06cc68deec430519b7d18d8
treed772b87627cd50c442648888c9b691c90f5d2c2c
parent260a6c1bdf1e072ae4d96f0d1ec2917237f1b627
drm/i915: Turn intel_digital_port_connected() in a vfunc

Let's get rid of the platform if ladders in
intel_digital_port_connected() and make it a vfunc. Now the if
ladders are at the encoder initialization which makes them a bit
less convoluted.

v2: Add forward decl for intel_encoder in intel_tc.h
v3: Duplicate stuff to avoid exposing platform specific
    functions across files (Jani)

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200311155422.3043-2-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_tc.c
drivers/gpu/drm/i915/display/intel_tc.h