Skip to content

Commit 1dfdb0e

Browse files
mlankhorstdanvet
authored andcommitted
drm/crtc: constify drm_crtc_mask parameter
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]
1 parent d807ed1 commit 1dfdb0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/drm/drm_crtc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@ static inline unsigned int drm_crtc_index(const struct drm_crtc *crtc)
13591359
* Given a registered CRTC, return the mask bit of that CRTC for an
13601360
* encoder's possible_crtcs field.
13611361
*/
1362-
static inline uint32_t drm_crtc_mask(struct drm_crtc *crtc)
1362+
static inline uint32_t drm_crtc_mask(const struct drm_crtc *crtc)
13631363
{
13641364
return 1 << drm_crtc_index(crtc);
13651365
}

include/drm/drm_encoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ static inline unsigned int drm_encoder_index(struct drm_encoder *encoder)
189189
}
190190

191191
/* FIXME: We have an include file mess still, drm_crtc.h needs untangling. */
192-
static inline uint32_t drm_crtc_mask(struct drm_crtc *crtc);
192+
static inline uint32_t drm_crtc_mask(const struct drm_crtc *crtc);
193193

194194
/**
195195
* drm_encoder_crtc_ok - can a given crtc drive a given encoder?

0 commit comments

Comments
 (0)