Selaa lähdekoodia

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
Jani Nikula 8 vuotta sitten
vanhempi
commit
a5bd451b6e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      include/drm/drm_crtc.h

+ 1 - 1
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
  * 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;
 }
 }