aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-11-03 07:20:52 -0500
committerThierry Reding <treding@nvidia.com>2014-11-13 07:27:08 -0500
commit8bf8180feb1b31ca8d4488d9afde8429f46d259e (patch)
tree9c4cbeced5b691ba0db6b166cab742b8b73e472e
parentf114040e3ea6e07372334ade75d1ee0775c355e1 (diff)
drm/gem: Fix a few kerneldoc typos
While at it, adjust the drm_gem_handle_create() function declaration to be more consistent with other functions in the file. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--drivers/gpu/drm/drm_gem.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c
index f6ca51259fa3..597318ae307e 100644
--- a/drivers/gpu/drm/drm_gem.c
+++ b/drivers/gpu/drm/drm_gem.c
@@ -309,7 +309,7 @@ EXPORT_SYMBOL(drm_gem_dumb_destroy);
309 * drm_gem_handle_create_tail - internal functions to create a handle 309 * drm_gem_handle_create_tail - internal functions to create a handle
310 * @file_priv: drm file-private structure to register the handle for 310 * @file_priv: drm file-private structure to register the handle for
311 * @obj: object to register 311 * @obj: object to register
312 * @handlep: pionter to return the created handle to the caller 312 * @handlep: pointer to return the created handle to the caller
313 * 313 *
314 * This expects the dev->object_name_lock to be held already and will drop it 314 * This expects the dev->object_name_lock to be held already and will drop it
315 * before returning. Used to avoid races in establishing new handles when 315 * before returning. Used to avoid races in establishing new handles when
@@ -362,7 +362,7 @@ drm_gem_handle_create_tail(struct drm_file *file_priv,
362} 362}
363 363
364/** 364/**
365 * gem_handle_create - create a gem handle for an object 365 * drm_gem_handle_create - create a gem handle for an object
366 * @file_priv: drm file-private structure to register the handle for 366 * @file_priv: drm file-private structure to register the handle for
367 * @obj: object to register 367 * @obj: object to register
368 * @handlep: pionter to return the created handle to the caller 368 * @handlep: pionter to return the created handle to the caller
@@ -371,10 +371,9 @@ drm_gem_handle_create_tail(struct drm_file *file_priv,
371 * to the object, which includes a regular reference count. Callers 371 * to the object, which includes a regular reference count. Callers
372 * will likely want to dereference the object afterwards. 372 * will likely want to dereference the object afterwards.
373 */ 373 */
374int 374int drm_gem_handle_create(struct drm_file *file_priv,
375drm_gem_handle_create(struct drm_file *file_priv, 375 struct drm_gem_object *obj,
376 struct drm_gem_object *obj, 376 u32 *handlep)
377 u32 *handlep)
378{ 377{
379 mutex_lock(&obj->dev->object_name_lock); 378 mutex_lock(&obj->dev->object_name_lock);
380 379