]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/drm/drm_drv.h
drm/vblank: Switch drm_driver->get_vblank_timestamp to return a bool
[karo-tx-linux.git] / include / drm / drm_drv.h
index d0b5f363bfa12c2aec69c791fe5c1f7336b6744f..da78e248d9d81ddfbd9e451e4a58d84fc7e2c5c7 100644 (file)
@@ -316,11 +316,10 @@ struct drm_driver {
         *
         * Returns:
         *
-        * Zero if timestamping isn't supported in current display mode or a
-        * negative number on failure. A positive status code on success,
-        * which describes how the vblank_time timestamp was computed.
+        * True on success, false on failure, which means the core should
+        * fallback to a simple timestamp taken in drm_crtc_handle_vblank().
         */
-       int (*get_vblank_timestamp) (struct drm_device *dev, unsigned int pipe,
+       bool (*get_vblank_timestamp) (struct drm_device *dev, unsigned int pipe,
                                     int *max_error,
                                     struct timeval *vblank_time,
                                     unsigned flags);