commit | a5bd451b6e6ece69be07a425381c4f3438eadba0 | [log] [tgz] |
---|---|---|
author | Jani Nikula <jani.nikula@intel.com> | Mon Oct 10 18:26:10 2016 +0300 |
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | Mon Oct 10 17:28:58 2016 +0200 |
tree | 5b410fc8dee8fc08d1fe97e6fc93b4bd785a4058 | |
parent | 621a99933c5cb509d832bb98e6118761461a1f8a [diff] [blame] |
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
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 61932f5..0aa2925 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h
@@ -1342,7 +1342,7 @@ * 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; }