drm/i915: Return correct EDP voltage swing table for 0.85V
authorMatthias Kaehlcke <mka@chromium.org>
Mon, 17 Jul 2017 19:58:54 +0000 (12:58 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 11 Aug 2017 18:36:38 +0000 (11:36 -0700)
commit50946c89850db13bd672c664aec6cf4551f71fe9
tree4edc61363542ce0468c3398d947fd796b17e6a51
parent2d56758557bc465a44879b471c84bd09ce8a2aac
drm/i915: Return correct EDP voltage swing table for 0.85V

For 0.85V cnl_get_buf_trans_edp() returns the DP table, instead of EDP.
Use the correct table.

The error was pointed out by this clang warning:

drivers/gpu/drm/i915/intel_ddi.c:392:39: warning: variable
  'cnl_ddi_translations_edp_0_85V' is not needed and will not be emitted
  [-Wunneeded-internal-declaration]
    static const struct cnl_ddi_buf_trans cnl_ddi_translations_edp_0_85V[] = {

Fixes: cf54ca8bc567 ("drm/i915/cnl: Implement voltage swing sequence.")
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170717195854.192139-1-mka@chromium.org
drivers/gpu/drm/i915/intel_ddi.c