summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_crtc.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2016-10-10 17:26:10 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-10-10 17:28:58 +0200
commita5bd451b6e6ece69be07a425381c4f3438eadba0 (patch)
tree5b410fc8dee8fc08d1fe97e6fc93b4bd785a4058 /include/drm/drm_crtc.h
parentdrm: use the right function name in documentation (diff)
downloadlinux-a5bd451b6e6ece69be07a425381c4f3438eadba0.tar.xz
linux-a5bd451b6e6ece69be07a425381c4f3438eadba0.zip
drm/crtc: constify drm_crtc_index parameter
Signed-off-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1476113170-13816-1-git-send-email-jani.nikula@intel.com
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r--include/drm/drm_crtc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 61932f55f788..0aa292526567 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -1342,7 +1342,7 @@ extern void drm_crtc_cleanup(struct drm_crtc *crtc);
* Given a registered CRTC, return the index of that CRTC within a DRM
* device's list of CRTCs.
*/
-static inline unsigned int drm_crtc_index(struct drm_crtc *crtc)
+static inline unsigned int drm_crtc_index(const struct drm_crtc *crtc)
{
return crtc->index;
}