Commit 931c670d authored by Shawn Guo's avatar Shawn Guo Committed by Daniel Vetter

drm: add more document for drm_crtc_from_index()

Add a bit more document for function drm_crtc_from_index() to cross
link it with drm_crtc_from_index(), and explain that the function is
useful in vblank code.

While at it, add cross link comment for drm_plane_from_index() as well.
Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1483779131-19935-1-git-send-email-shawnguo@kernel.org
parent a09759e8
...@@ -52,7 +52,10 @@ ...@@ -52,7 +52,10 @@
* @idx: index of registered CRTC to find for * @idx: index of registered CRTC to find for
* *
* Given a CRTC index, return the registered CRTC from DRM device's * Given a CRTC index, return the registered CRTC from DRM device's
* list of CRTCs with matching index. * list of CRTCs with matching index. This is the inverse of drm_crtc_index().
* It's useful in the vblank callbacks (like &drm_driver.enable_vblank or
* &drm_driver.disable_vblank), since that still deals with indices instead
* of pointers to &struct drm_crtc."
*/ */
struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx) struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx)
{ {
......
...@@ -254,7 +254,7 @@ EXPORT_SYMBOL(drm_plane_cleanup); ...@@ -254,7 +254,7 @@ EXPORT_SYMBOL(drm_plane_cleanup);
* @idx: index of registered plane to find for * @idx: index of registered plane to find for
* *
* Given a plane index, return the registered plane from DRM device's * Given a plane index, return the registered plane from DRM device's
* list of planes with matching index. * list of planes with matching index. This is the inverse of drm_plane_index().
*/ */
struct drm_plane * struct drm_plane *
drm_plane_from_index(struct drm_device *dev, int idx) drm_plane_from_index(struct drm_device *dev, int idx)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment