diff options
author | Thierry Reding <treding@nvidia.com> | 2014-05-19 07:39:07 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-06-05 17:14:38 -0400 |
commit | c6a1af8a1621913e2658eaff419bab7028b2c42c (patch) | |
tree | 2f50b904d0eed18320c56d81e0338a789fcd8708 /Documentation | |
parent | ca8e2ad71013049bc88a10b11d83712bfe56cdd4 (diff) |
drm: Add device registration documentation
Describe how devices are registered using the drm_*_init() functions.
Adding this to docbook requires a largish set of changes to the comments
in drm_{pci,usb,platform}.c since they are doxygen-style rather than
proper kernel-doc and therefore mess with the docbook generation.
While at it, mark usage of drm_put_dev() as discouraged in favour of
calling drm_dev_unregister() and drm_dev_unref() directly.
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/DocBook/drm.tmpl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/DocBook/drm.tmpl b/Documentation/DocBook/drm.tmpl index efef63717ef6..ba09b6f1e5b3 100644 --- a/Documentation/DocBook/drm.tmpl +++ b/Documentation/DocBook/drm.tmpl | |||
@@ -282,6 +282,16 @@ char *date;</synopsis> | |||
282 | </sect3> | 282 | </sect3> |
283 | </sect2> | 283 | </sect2> |
284 | <sect2> | 284 | <sect2> |
285 | <title>Device Registration</title> | ||
286 | <para> | ||
287 | A number of functions are provided to help with device registration. | ||
288 | The functions deal with PCI, USB and platform devices, respectively. | ||
289 | </para> | ||
290 | !Edrivers/gpu/drm/drm_pci.c | ||
291 | !Edrivers/gpu/drm/drm_usb.c | ||
292 | !Edrivers/gpu/drm/drm_platform.c | ||
293 | </sect2> | ||
294 | <sect2> | ||
285 | <title>Driver Load</title> | 295 | <title>Driver Load</title> |
286 | <para> | 296 | <para> |
287 | The <methodname>load</methodname> method is the driver and device | 297 | The <methodname>load</methodname> method is the driver and device |