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
This commit is contained in:
Jani Nikula 2016-10-10 18:26:10 +03:00 committed by Daniel Vetter
parent 621a99933c
commit a5bd451b6e

View File

@ -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 * Given a registered CRTC, return the index of that CRTC within a DRM
* device's list of CRTCs. * 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; return crtc->index;
} }