drm/i915: Replace "INTEL_INFO->gen == x" checks with IS_GENx
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 10 May 2016 09:57:06 +0000 (10:57 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 11 May 2016 11:27:27 +0000 (12:27 +0100)
commit7e22dbbbae81bfdf26b468aaa1c9a9570f7476ba
tree9e6cb09c120d1658e07c4a1deaae613cdb3d8fcc
parentab0d24ac38e34c03a6ced9b9c458a07ab3d431ea
drm/i915: Replace "INTEL_INFO->gen == x" checks with IS_GENx

This way optimization from a previous patch works even better.

v2: Rebase.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
12 files changed:
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_stolen.c
drivers/gpu/drm/i915/i915_gem_tiling.c
drivers/gpu/drm/i915/i915_gpu_error.c
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_lvds.c
drivers/gpu/drm/i915/intel_pm.c
drivers/gpu/drm/i915/intel_ringbuffer.c