drm/i915/dg2: use existing mechanisms for SNPS PHY translations
authorJani Nikula <jani.nikula@intel.com>
Fri, 13 Aug 2021 11:51:50 +0000 (14:51 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 13 Aug 2021 19:32:16 +0000 (22:32 +0300)
commit3b4da8315addfe4661f3c25ea8a83097d965c67a
tree656fe903f5d051f4f1a49dba056d604ac3833524
parent0707570248b8b13008d0fca7cc4f6e1848f0d64f
drm/i915/dg2: use existing mechanisms for SNPS PHY translations

We use encoder->get_buf_trans() in many places, for example
intel_ddi_dp_voltage_max(), and the hook was set to some old platform's
function for DG2 SNPS PHY. Convert SNPS PHY to use the same translation
mechanisms as everything else.

Cc: Manasi Navare <manasi.d.navare@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210813115151.19290-2-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c
drivers/gpu/drm/i915/display/intel_ddi_buf_trans.h
drivers/gpu/drm/i915/display/intel_snps_phy.c
drivers/gpu/drm/i915/display/intel_snps_phy.h