aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_tv.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-09-11 08:48:45 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-11 14:27:12 -0400
commit5eddb70ba2b8cdbbdd563f5cb04e26fdc9b017f7 (patch)
tree49a0f42a99b4b72794bd2cbab78816595c88da25 /drivers/gpu/drm/i915/intel_tv.c
parent4ed765f966c8279acc6f6bc1a5dcb0424d074b40 (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_tv.c')
-rw-r--r--drivers/gpu/drm/i915/intel_tv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_tv.c b/drivers/gpu/drm/i915/intel_tv.c
index 267da3289263..e819cadd5f46 100644
--- a/drivers/gpu/drm/i915/intel_tv.c
+++ b/drivers/gpu/drm/i915/intel_tv.c
@@ -1168,7 +1168,7 @@ intel_tv_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode,
1168 if (!IS_I9XX(dev)) 1168 if (!IS_I9XX(dev))
1169 intel_wait_for_vblank(dev, intel_crtc->pipe); 1169 intel_wait_for_vblank(dev, intel_crtc->pipe);
1170 1170
1171 I915_WRITE(pipeconf_reg, pipeconf & ~PIPEACONF_ENABLE); 1171 I915_WRITE(pipeconf_reg, pipeconf & ~PIPECONF_ENABLE);
1172 /* Wait for vblank for the disable to take effect. */ 1172 /* Wait for vblank for the disable to take effect. */
1173 intel_wait_for_vblank_off(dev, intel_crtc->pipe); 1173 intel_wait_for_vblank_off(dev, intel_crtc->pipe);
1174 1174