drm/i915: Don't store temporary load-detect variables in the generic encoder
commit8261b19173b89d86cc3088483595e2879e4976d6
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Apr 2011 22:18:09 +0000 (19 23:18 +0100)
committerKeith Packard <keithp@keithp.com>
Tue, 10 May 2011 20:19:15 +0000 (10 13:19 -0700)
tree8ae61604d984a43f73950c443992b1a636790e61
parentbe925587570a745944d99042368f72496bc28a70
drm/i915: Don't store temporary load-detect variables in the generic encoder

Keep all the state required for undoing and restoring the previous pipe
configuration together in a single struct passed from
intel_get_load_detect_pipe() to intel_release_load_detect_pipe() rather
than stuffing them inside the common encoder structure.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_crt.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_tv.c