[PATCH] drm/doc: Fix doc in drm_file

From: onion0709
Date: Thu Jun 12 2025 - 05:13:57 EST


From: Luc Ma <luc@xxxxxxxxxxx>

Add missing type of variable in the example

Signed-off-by: Luc Ma <luc@xxxxxxxxxxx>
---
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