From: Jani Nikula Date: Mon, 10 Oct 2016 15:26:10 +0000 (+0300) Subject: drm/crtc: constify drm_crtc_index parameter X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a5bd451b6e6ece69be07a425381c4f3438eadba0;p=openwrt%2Fstaging%2Fblogic.git drm/crtc: constify drm_crtc_index parameter Signed-off-by: Jani Nikula Signed-off-by: Daniel Vetter Link: http://patchwork.freedesktop.org/patch/msgid/1476113170-13816-1-git-send-email-jani.nikula@intel.com --- 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; }