[PATCH] drm/doc: Fix doc in drm_file

onion0709 at gmail.com onion0709 at gmail.com
Thu Jun 12 09:12:37 UTC 2025


From: Luc Ma <luc at sietium.com>

Add missing type of variable in the example

Signed-off-by: Luc Ma <luc at sietium.com>
---
 drivers/gpu/drm/drm_file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_file.c b/drivers/gpu/drm/drm_file.c
index 246cf845e2c9..96696fca50a0 100644
--- a/drivers/gpu/drm/drm_file.c
+++ b/drivers/gpu/drm/drm_file.c
@@ -95,7 +95,7 @@ bool drm_dev_needs_global_mutex(struct drm_device *dev)
  * No other file operations are supported by the DRM userspace API. Overall the
  * following is an example &file_operations structure::
  *
- *     static const example_drm_fops = {
+ *     static const struct file_operations example_drm_fops = {
  *             .owner = THIS_MODULE,
  *             .open = drm_open,
  *             .release = drm_release,
-- 
2.39.2



More information about the dri-devel mailing list