drm/i915: Use macros to switch between equivalent pipe registers
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 11 Sep 2010 12:48:45 +0000 (13:48 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 11 Sep 2010 18:27:12 +0000 (19:27 +0100)
commit5eddb70ba2b8cdbbdd563f5cb04e26fdc9b017f7
tree49a0f42a99b4b72794bd2cbab78816595c88da25
parent4ed765f966c8279acc6f6bc1a5dcb0424d074b40
drm/i915: Use macros to switch between equivalent pipe registers

The purpose is to make the code much easier to read and therefore reduce
the possibility for bugs.

A side effect is that it also makes it much easier for the compiler,
reducing the object size by 4k -- from just a few functions!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_overlay.c
drivers/gpu/drm/i915/intel_tv.c