]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove the fragile array index -> link rate mapping
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 7 Feb 2019 17:32:30 +0000 (19:32 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 19 Mar 2019 10:58:33 +0000 (12:58 +0200)
commita8cd018667c21c33b756f07217bcf73fa93f8e35
tree81817acac13de56764e2fe5b81b2434ee28bf71c
parent8feb96bacf27bddc1391eaec510385decdb7123d
drm/i915: Remove the fragile array index -> link rate mapping

Rather than try to maintain some magic relationship between the link
rates and the index into the wrpll params array let's just store
the link rate in the array itself. Much less fragile.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190207173230.22368-13-ville.syrjala@linux.intel.com
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/i915/intel_dpll_mgr.c