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)
commit56e51bf03666728d4eb1d8319215865c8dbf4338
treed53c8a14c2c95d5697b712cfae433b7b852bb7f2
parente2989f140e707f31afa5fa617512961b3f692aca
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