aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_drv.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2016-12-29 15:48:26 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-12-30 07:34:59 -0500
commitea0dd85a75f15174cc2bf75f805e378391995931 (patch)
treee2dc904067a98bec44e04ca870b46d4e4434de9e /drivers/gpu/drm/drm_drv.c
parente9b4d7b56f293ed4de9ff7d16759d33492f83180 (diff)
drm/doc: use preferred struct reference in kernel-doc
sed -e 's/\( \* .*\)struct &\([_a-z]*\)/\1\&struct \2/' -i Originally I wasnt a friend of this style because I thought a line-break between the "&struct" and "foo" part would break it. But a quick test shows that " * &struct \n * foo\n" works pefectly well with current kernel-doc. So time to mass-apply these changes! Cc: Jani Nikula <jani.nikula@linux.intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1483044517-5770-6-git-send-email-daniel.vetter@ffwll.ch
Diffstat (limited to 'drivers/gpu/drm/drm_drv.c')
-rw-r--r--drivers/gpu/drm/drm_drv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index 9d2b4b630601..135c746dc9c7 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -298,7 +298,7 @@ void drm_minor_release(struct drm_minor *minor)
298/** 298/**
299 * DOC: driver instance overview 299 * DOC: driver instance overview
300 * 300 *
301 * A device instance for a drm driver is represented by struct &drm_device. This 301 * A device instance for a drm driver is represented by &struct drm_device. This
302 * is allocated with drm_dev_alloc(), usually from bus-specific ->probe() 302 * is allocated with drm_dev_alloc(), usually from bus-specific ->probe()
303 * callbacks implemented by the driver. The driver then needs to initialize all 303 * callbacks implemented by the driver. The driver then needs to initialize all
304 * the various subsystems for the drm device like memory management, vblank 304 * the various subsystems for the drm device like memory management, vblank
@@ -323,7 +323,7 @@ void drm_minor_release(struct drm_minor *minor)
323 * historical baggage. Hence use the reference counting provided by 323 * historical baggage. Hence use the reference counting provided by
324 * drm_dev_ref() and drm_dev_unref() only carefully. 324 * drm_dev_ref() and drm_dev_unref() only carefully.
325 * 325 *
326 * It is recommended that drivers embed struct &drm_device into their own device 326 * It is recommended that drivers embed &struct drm_device into their own device
327 * structure, which is supported through drm_dev_init(). 327 * structure, which is supported through drm_dev_init().
328 */ 328 */
329 329
@@ -461,8 +461,8 @@ static void drm_fs_inode_free(struct inode *inode)
461 * Note that for purely virtual devices @parent can be NULL. 461 * Note that for purely virtual devices @parent can be NULL.
462 * 462 *
463 * Drivers that do not want to allocate their own device struct 463 * Drivers that do not want to allocate their own device struct
464 * embedding struct &drm_device can call drm_dev_alloc() instead. For drivers 464 * embedding &struct drm_device can call drm_dev_alloc() instead. For drivers
465 * that do embed struct &drm_device it must be placed first in the overall 465 * that do embed &struct drm_device it must be placed first in the overall
466 * structure, and the overall structure must be allocated using kmalloc(): The 466 * structure, and the overall structure must be allocated using kmalloc(): The
467 * drm core's release function unconditionally calls kfree() on the @dev pointer 467 * drm core's release function unconditionally calls kfree() on the @dev pointer
468 * when the final reference is released. 468 * when the final reference is released.
@@ -568,7 +568,7 @@ EXPORT_SYMBOL(drm_dev_init);
568 * 568 *
569 * Note that for purely virtual devices @parent can be NULL. 569 * Note that for purely virtual devices @parent can be NULL.
570 * 570 *
571 * Drivers that wish to subclass or embed struct &drm_device into their 571 * Drivers that wish to subclass or embed &struct drm_device into their
572 * own struct should look at using drm_dev_init() instead. 572 * own struct should look at using drm_dev_init() instead.
573 * 573 *
574 * RETURNS: 574 * RETURNS: