Skip to content

Commit 4aa0dea

Browse files
Thadeu Lima de Souza Cascardotdz
authored andcommitted
drm/vram: remove DRM_VRAM_MM_FILE_OPERATIONS from docs
Commit 02f64b2 ("drm/vram: drop DRM_VRAM_MM_FILE_OPERATIONS") dropped DRM_VRAM_MM_FILE_OPERATIONS in preference for using DEFINE_DRM_GEM_OPS. However, it was not dropped from the kernel docs. Use DEFINE_DRM_GEM_OPS in the illustration on how to define a struct file_operations for such a DRM driver and remove any reference to DRM_VRAM_MM_FILE_OPERATIONS. Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]> Reviewed-by: Thomas Zimmermann <[email protected]> Fixes: 02f64b2 ("drm/vram: drop DRM_VRAM_MM_FILE_OPERATIONS") Signed-off-by: Thomas Zimmermann <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent bd64240 commit 4aa0dea

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

drivers/gpu/drm/drm_gem_vram_helper.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,12 @@ static const struct drm_gem_object_funcs drm_gem_vram_object_funcs;
4949
* To initialize the VRAM helper library call drmm_vram_helper_init().
5050
* The function allocates and initializes an instance of &struct drm_vram_mm
5151
* in &struct drm_device.vram_mm . Use &DRM_GEM_VRAM_DRIVER to initialize
52-
* &struct drm_driver and &DRM_VRAM_MM_FILE_OPERATIONS to initialize
52+
* &struct drm_driver and &DEFINE_DRM_GEM_FOPS to define
5353
* &struct file_operations; as illustrated below.
5454
*
5555
* .. code-block:: c
5656
*
57-
* struct file_operations fops ={
58-
* .owner = THIS_MODULE,
59-
* DRM_VRAM_MM_FILE_OPERATION
60-
* };
57+
* DEFINE_DRM_GEM_FOPS(fops);
6158
* struct drm_driver drv = {
6259
* .driver_feature = DRM_ ... ,
6360
* .fops = &fops,

0 commit comments

Comments
 (0)