drm/i915/sdov: switch IS_SDVOB to a flag
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 23 Mar 2012 22:43:35 +0000 (23:43 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 24 Mar 2012 14:55:53 +0000 (15:55 +0100)
commiteef4eacb6ed3940b4a15daf3fbd060243e54056c
treedaf7a93bfe8307fd5672ed72ae3f28fa4074c5d7
parent7eea1ddf6168cbe4507f429da53752229e9ff5b7
drm/i915/sdov: switch IS_SDVOB to a flag

With valleyview we'll have these at yet another address, so keeping
track of this with an ever-growing list of registers will get ugly.

This way intel_sdvo.c is fully independent of the base address of the
output ports display register blocks.

While at it, do 2 closely related cleanups:
- use SDVO_NAME some more
- change the sdvo_reg variables to uint32_t like other registers.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_sdvo.c