OSDN Git Service

drm/i915: Save some lines of source code in workarounds
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 1 Feb 2019 01:08:43 +0000 (17:08 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Feb 2019 08:39:52 +0000 (08:39 +0000)
commitae598b0d6b50f5da3d31dc1fab9880b03c631b70
treeec9316ee3b908c81ec60901713a6116350cb95fc
parent69b768f2bc6750f785bcf04f87b06e8c27e22de9
drm/i915: Save some lines of source code in workarounds

No functional or code size change - just notice we can compact the source
by re-using a single helper for adding workarounds.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@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/1548983324-15344-3-git-send-email-talha.nassar@intel.com
drivers/gpu/drm/i915/intel_workarounds.c