aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2011-10-04 14:13:36 -0400
committerDave Airlie <airlied@redhat.com>2011-10-05 05:17:36 -0400
commit6ea77d1384ed0c2d040a1934ecc3fd7187580931 (patch)
tree92b4358b0e91c4bca5da8ebe42cf9d64967a6536 /drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
parente5ed157d93861f30977913e95f7b5dc60ccc3318 (diff)
vmwgfx: Minor cleanups
As suggested by Konrad Rzeszutek Wilk Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_kms.c')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_kms.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
index 0921cce44205..fc62c8798c4c 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
@@ -1317,18 +1317,19 @@ int vmw_du_update_layout(struct vmw_private *dev_priv, unsigned num,
1317 struct drm_device *dev = dev_priv->dev; 1317 struct drm_device *dev = dev_priv->dev;
1318 struct vmw_display_unit *du; 1318 struct vmw_display_unit *du;
1319 struct drm_connector *con; 1319 struct drm_connector *con;
1320 int i;
1321 1320
1322 mutex_lock(&dev->mode_config.mutex); 1321 mutex_lock(&dev->mode_config.mutex);
1323 1322
1324#if 0 1323#if 0
1325 DRM_INFO("%s: new layout ", __func__); 1324 {
1326 for (i = 0; i < (int)num; i++) 1325 unsigned int i;
1327 DRM_INFO("(%i, %i %ux%u) ", rects[i].x, rects[i].y, 1326
1328 rects[i].w, rects[i].h); 1327 DRM_INFO("%s: new layout ", __func__);
1329 DRM_INFO("\n"); 1328 for (i = 0; i < num; i++)
1330#else 1329 DRM_INFO("(%i, %i %ux%u) ", rects[i].x, rects[i].y,
1331 (void)i; 1330 rects[i].w, rects[i].h);
1331 DRM_INFO("\n");
1332 }
1332#endif 1333#endif
1333 1334
1334 list_for_each_entry(con, &dev->mode_config.connector_list, head) { 1335 list_for_each_entry(con, &dev->mode_config.connector_list, head) {