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 коммит произвёл Daniel Vetter
Родитель 621a99933c
Коммит a5bd451b6e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
}