]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Tidy execlists_init_reg_state
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 21 Feb 2017 09:58:39 +0000 (09:58 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 21 Feb 2017 13:15:41 +0000 (13:15 +0000)
commitad5de99ba7a7a2f5087b61f90059545d58b7f3ee
treed53c8a14c2c95d5697b712cfae433b7b852bb7f2
parent72836948860a0d9fda5abe07a1c8fd5bfa655f91
drm/i915: Tidy execlists_init_reg_state

Compact the name of the macro and reg_state variable, and cache
some data in local variables to make the function more compact
and more readable.

v2: Fixup some checkpatch warnings.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170221095839.30525-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/intel_lrc.c