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/nouveau | |
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/nouveau')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_connector.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c index 67d515cb67e0..87186a4bbf03 100644 --- a/drivers/gpu/drm/nouveau/nouveau_connector.c +++ b/drivers/gpu/drm/nouveau/nouveau_connector.c | |||
@@ -168,8 +168,7 @@ nouveau_connector_set_encoder(struct drm_connector *connector, | |||
168 | } | 168 | } |
169 | 169 | ||
170 | static enum drm_connector_status | 170 | static enum drm_connector_status |
171 | nouveau_connector_detect(struct drm_connector *connector, | 171 | nouveau_connector_detect(struct drm_connector *connector, bool force) |
172 | bool nondestructive) | ||
173 | { | 172 | { |
174 | struct drm_device *dev = connector->dev; | 173 | struct drm_device *dev = connector->dev; |
175 | struct nouveau_connector *nv_connector = nouveau_connector(connector); | 174 | struct nouveau_connector *nv_connector = nouveau_connector(connector); |
@@ -247,8 +246,7 @@ detect_analog: | |||
247 | } | 246 | } |
248 | 247 | ||
249 | static enum drm_connector_status | 248 | static enum drm_connector_status |
250 | nouveau_connector_detect_lvds(struct drm_connector *connector, | 249 | nouveau_connector_detect_lvds(struct drm_connector *connector, bool force) |
251 | bool nondestructive) | ||
252 | { | 250 | { |
253 | struct drm_device *dev = connector->dev; | 251 | struct drm_device *dev = connector->dev; |
254 | struct drm_nouveau_private *dev_priv = dev->dev_private; | 252 | struct drm_nouveau_private *dev_priv = dev->dev_private; |
@@ -269,7 +267,7 @@ nouveau_connector_detect_lvds(struct drm_connector *connector, | |||
269 | 267 | ||
270 | /* Try retrieving EDID via DDC */ | 268 | /* Try retrieving EDID via DDC */ |
271 | if (!dev_priv->vbios.fp_no_ddc) { | 269 | if (!dev_priv->vbios.fp_no_ddc) { |
272 | status = nouveau_connector_detect(connector, nondestructive); | 270 | status = nouveau_connector_detect(connector, force); |
273 | if (status == connector_status_connected) | 271 | if (status == connector_status_connected) |
274 | goto out; | 272 | goto out; |
275 | } | 273 | } |