]> 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)
commite514935dcee0c1f4d027de13a4a1a6b44b8e5b82
tree81817acac13de56764e2fe5b81b2434ee28bf71c
parent6b1db229b3dae0b3ac1824b4982aaf99f11e5e6e
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