drm/crtc: constify drm_crtc_mask parameter
authorMaarten Lankhorst <[email protected]>
Thu, 13 Oct 2016 08:38:11 +0000 (10:38 +0200)
committerDaniel Vetter <[email protected]>
Mon, 17 Oct 2016 06:12:05 +0000 (08:12 +0200)
Now that drm_crtc_index takes a const, the same can be done for drm_crtc_mask.

Signed-off-by: Maarten Lankhorst <[email protected]>
Reviewed-by: Jani Nikula <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
include/drm/drm_crtc.h
include/drm/drm_encoder.h

index 92246619947c3ad2aa5df8f1597f90e59ae9815a..4633915cb51b273396cd007699bef90f538c3379 100644 (file)
@@ -1359,7 +1359,7 @@ static inline unsigned int drm_crtc_index(const struct drm_crtc *crtc)
  * Given a registered CRTC, return the mask bit of that CRTC for an
  * encoder's possible_crtcs field.
  */
-static inline uint32_t drm_crtc_mask(struct drm_crtc *crtc)
+static inline uint32_t drm_crtc_mask(const struct drm_crtc *crtc)
 {
        return 1 << drm_crtc_index(crtc);
 }
index 387e33a4d6ee5bc7bea8551c6e8016858669588a..c7438ff0d60922e2f5816aeecd65db306a68ffb6 100644 (file)
@@ -189,7 +189,7 @@ static inline unsigned int drm_encoder_index(struct drm_encoder *encoder)
 }
 
 /* FIXME: We have an include file mess still, drm_crtc.h needs untangling. */
-static inline uint32_t drm_crtc_mask(struct drm_crtc *crtc);
+static inline uint32_t drm_crtc_mask(const struct drm_crtc *crtc);
 
 /**
  * drm_encoder_crtc_ok - can a given crtc drive a given encoder?