diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-14 06:07:23 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-09-14 06:38:48 -0400 |
commit | 930a9e283516a3a3595c0c515113f1b78d07f695 (patch) | |
tree | b527736ae76d678f8791755be28a250a6e2593bc /drivers/gpu/drm/i915/intel_crt.c | |
parent | a41ceb1c17af06a17c0d88e987215ef20b93c471 (diff) |
drm: Use a nondestructive mode for output detect when polling (v2)
v2: Julien Cristau pointed out that @nondestructive results in
double-negatives and confusion when trying to interpret the parameter,
so use @force instead. Much easier to type as well. ;-)
And fix the miscompilation of vmgfx reported by Sedat Dilek.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_crt.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_crt.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_crt.c b/drivers/gpu/drm/i915/intel_crt.c index 0350e5d711f8..a02a8df73727 100644 --- a/drivers/gpu/drm/i915/intel_crt.c +++ b/drivers/gpu/drm/i915/intel_crt.c | |||
@@ -401,8 +401,7 @@ intel_crt_load_detect(struct drm_crtc *crtc, struct intel_encoder *intel_encoder | |||
401 | } | 401 | } |
402 | 402 | ||
403 | static enum drm_connector_status | 403 | static enum drm_connector_status |
404 | intel_crt_detect(struct drm_connector *connector, | 404 | intel_crt_detect(struct drm_connector *connector, bool force) |
405 | bool nondestructive) | ||
406 | { | 405 | { |
407 | struct drm_device *dev = connector->dev; | 406 | struct drm_device *dev = connector->dev; |
408 | struct drm_encoder *encoder = intel_attached_encoder(connector); | 407 | struct drm_encoder *encoder = intel_attached_encoder(connector); |
@@ -421,7 +420,7 @@ intel_crt_detect(struct drm_connector *connector, | |||
421 | if (intel_crt_detect_ddc(encoder)) | 420 | if (intel_crt_detect_ddc(encoder)) |
422 | return connector_status_connected; | 421 | return connector_status_connected; |
423 | 422 | ||
424 | if (nondestructive) | 423 | if (!force) |
425 | return connector->status; | 424 | return connector->status; |
426 | 425 | ||
427 | /* for pre-945g platforms use load detect */ | 426 | /* for pre-945g platforms use load detect */ |