drm/i915/crt: implement get_hw_state
commite403fc941aa94ff6cf598c632e5c02e96eed022e
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 2 Jul 2012 11:41:21 +0000 (2 13:41 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Sep 2012 05:58:37 +0000 (6 07:58 +0200)
tree40b43105b69510f7680be740fd1eb63d6cd700ff
parentb1dc332c4d1524fe5d901ca91aa4c4e776526b4f
drm/i915/crt: implement get_hw_state

Note that even though this connector is cloneable we still can use the
exact same test to check whether the connector is on or whether the
encoder is enabled - both the dpms code and the encoder disable/enable
frob the exact same hw state.

For dvo/sdvo outputs, this will be different.

Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_crt.c