]> 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)
commit33ee9e8680963fbfa298fec08eed7b45db0a1ebb
treee1ad8a8d0adb3869dfb190d0502f82164701406e
parent49610c377be7f32d948f0970705b4ad015923aa0
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