drm/i915: Extract functions to derive SKL+ DIMM info
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 6 Mar 2019 20:35:41 +0000 (22:35 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 7 Mar 2019 21:16:13 +0000 (23:16 +0200)
commitea411e6b85df938eaa3ec4e3e34e885ff496a3ce
tree9e4a01a7cb75c3fd4e81a70b5c9dd12d6ac5e808
parent80373fb6be9643d065c57c1030038fe927cfb478
drm/i915: Extract functions to derive SKL+ DIMM info

Make the code less repetitive by extracting a few small helpers.

v2: Squash in the switch removal for skl_get_dimm_ranks()
    (it got misplaced in a rebase accident)
    Document what skl_get_dimm_size() returns (Jani)

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190306203551.24592-3-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/i915_drv.c