]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use local variables for subslice_mask for device info
authorStuart Summers <stuart.summers@intel.com>
Fri, 23 Aug 2019 16:03:01 +0000 (09:03 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 23 Aug 2019 18:14:23 +0000 (19:14 +0100)
commitad6cbbfce5d2b10cd38a311eeb8bcfd6b67d347a
treee1ad8a8d0adb3869dfb190d0502f82164701406e
parentb5306eaea4c35ffb203b43930fe87a3a962cb5a0
drm/i915: Use local variables for subslice_mask for device info

When setting up subslice_mask, instead of operating on the slice
array directly, use a local variable to start bits per slice, then
use this to set the per slice array in one step.

Signed-off-by: Stuart Summers <stuart.summers@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190823160307.180813-6-stuart.summers@intel.com
drivers/gpu/drm/i915/intel_device_info.c