Skip to contentSkip to conversation

drm/doc: drm_wait_vblank is a union

PATCH In review Karl Mehltretter 2 participants 2 messages Sep 5

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/doc: drm_wait_vblank is a union

drm_wait_vblank is a union of the request and the reply (include/uapi/drm/drm.h), not a structure, and has been since before commit 2d2ef822758e ("drm: add initial DRM developer documentation") wrote the sentence.

Say union.

Fixes 2d2ef822758e ("drm: add initial DRM developer documentation")
Assisted-by LLM
---
 Documentation/gpu/drm-uapi.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/gpu/drm-uapi.rst +1 -1
index 93df92c4ac8c..b08d731a093f 100644
@@ -707,7 +707,7 @@ VBlank event handling
 The DRM core exposes two vertical blank related ioctls:
 
 :c:macro:`DRM_IOCTL_WAIT_VBLANK`
-    This takes a struct drm_wait_vblank structure as its argument, and
+    This takes a union drm_wait_vblank as its argument, and
     it is used to block or request a signal when a specified vblank
     event occurs.
 
Signature · 1 line
2.53.0
reviewer Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Karl Mehltretter

drm_wait_vblank is a union of the request and the reply (include/uapi/drm/drm.h), not a structure, and has been since before commit 2d2ef822758e ("drm: add initial DRM developer documentation") wrote the sentence.

Say union.

Fixes 2d2ef822758e ("drm: add initial DRM developer documentation")
Assisted-by LLM

Thanks.

Quoted 17 lines
---
 Documentation/gpu/drm-uapi.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/gpu/drm-uapi.rst +1 -1
index 93df92c4ac8c..b08d731a093f 100644
@@ -707,7 +707,7 @@ VBlank event handling
 The DRM core exposes two vertical blank related ioctls:
 
 :c:macro:`DRM_IOCTL_WAIT_VBLANK`
-    This takes a struct drm_wait_vblank structure as its argument, and
+    This takes a union drm_wait_vblank as its argument, and
     it is used to block or request a signal when a specified vblank
     event occurs.
 
Signature · 1 line
~Randy