drm/doc: Use new substruct support
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 19 Feb 2018 22:53:56 +0000 (23:53 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 20 Feb 2018 13:24:38 +0000 (14:24 +0100)
Support for this just recently landed in linux-next.

Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180219225356.24996-5-daniel.vetter@ffwll.ch
include/drm/drm_vblank.h

index 848b463a0af516ebd9894cf7917cff8eeb2cde9e..425ad80ed2ac03783a2603cf9cd8205628872498 100644 (file)
@@ -55,8 +55,24 @@ struct drm_pending_vblank_event {
         * @event: Actual event which will be sent to userspace.
         */
        union {
+               /**
+                * @event.base: DRM event base class.
+                */
                struct drm_event base;
+
+               /**
+                * @event.vbl:
+                *
+                * Event payload for vblank events, requested through
+                * either the MODE_PAGE_FLIP or MODE_ATOMIC IOCTL. Also
+                * generated by the legacy WAIT_VBLANK IOCTL, but new userspace
+                * should use MODE_QUEUE_SEQUENCE and &event.seq instead.
+                */
                struct drm_event_vblank vbl;
+
+               /**
+                * @event.seq: Event payload for the MODE_QUEUEU_SEQUENCE IOCTL.
+                */
                struct drm_event_crtc_sequence seq;
        } event;
 };