drm/i915: Introduce intel_dbuf_slice_size()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 22 Jan 2021 20:56:28 +0000 (22:56 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 26 Jan 2021 13:41:11 +0000 (15:41 +0200)
commit944a5e3feb8b74cc15652a2196c42b924dce65b1
tree0a70e9f5feed81f66ce56a90f9bfeb8ffcd92b37
parent2d42f32f09914321b737e5c9025e69dcce4323a4
drm/i915: Introduce intel_dbuf_slice_size()

Put the code into a function with a descriptive name. Also relocate
the code a bit help future work.

Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210122205633.18492-4-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_pm.c
drivers/gpu/drm/i915/intel_pm.h