drm/i915: Return the real error code from intel_set_mode()
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 19 Dec 2012 16:08:43 +0000 (16:08 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 20 Dec 2012 20:09:55 +0000 (21:09 +0100)
commitc0c36b941b6f0be6ac74f340040cbb29d6a0b06c
tree68e8846f56be510e48f91d3896c768011248608d
parent1c45140d3da0c98fa7eda2cd10f9805232a5e9ac
drm/i915: Return the real error code from intel_set_mode()

Note: This patch also adds a little helper intel_crtc_restore_mode for
the common case where we do a full modeset but with the same
parameters, e.g. to undo bios damage or update a property.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
[danvet: Added note.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_hdmi.c
drivers/gpu/drm/i915/intel_lvds.c
drivers/gpu/drm/i915/intel_sdvo.c
drivers/gpu/drm/i915/intel_tv.c