diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2024-04-08 21:06:07 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2024-04-18 12:27:56 +0200 |
commit | d12e36494dc2bf221867ecbfa7059e1e231f6ac2 (patch) | |
tree | 9049e59c542fc789cd3fc2cda8ebf15585a1851b /include/drm | |
parent | drm/panel: simple: Add Innolux G121XCE-L01 LVDS display support (diff) | |
download | linux-d12e36494dc2bf221867ecbfa7059e1e231f6ac2.tar.xz linux-d12e36494dc2bf221867ecbfa7059e1e231f6ac2.zip |
drm/vblank: Introduce drm_crtc_vblank_crtc()
Make life easier by providing a function that hands
out the correct drm_vblank_crtc for a given a drm_crtc.
Also abstract the lower level internals of the vblank
code in a similar fashion.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240408190611.24914-1-ville.syrjala@linux.intel.com
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_vblank.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_vblank.h b/include/drm/drm_vblank.h index 7f3957943dd1..c8f829b4307c 100644 --- a/include/drm/drm_vblank.h +++ b/include/drm/drm_vblank.h @@ -225,6 +225,7 @@ struct drm_vblank_crtc { wait_queue_head_t work_wait_queue; }; +struct drm_vblank_crtc *drm_crtc_vblank_crtc(struct drm_crtc *crtc); int drm_vblank_init(struct drm_device *dev, unsigned int num_crtcs); bool drm_dev_has_vblank(const struct drm_device *dev); u64 drm_crtc_vblank_count(struct drm_crtc *crtc); |