diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2012-10-25 14:05:05 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-11-06 19:09:16 -0500 |
commit | 0b3904ab2a48488e23332ac1ecd2d45961ec6718 (patch) | |
tree | fa5cd54d13abcbbf81de3a61aab2ea65bd6c65f3 /include/drm | |
parent | b180b5d1c7ac930387734664802fc26fa788e26f (diff) |
drm: Constify some function arguments
None of drm_mode_debug_printmodeline(), drm_mode_equal(), drm_mode_width()
or drm_mode_height() change the mode passed in, so make the arguments
const.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_crtc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 3fa18b7e9497..49dd8c2eea7d 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -887,14 +887,14 @@ extern void drm_mode_remove(struct drm_connector *connector, struct drm_display_ | |||
887 | extern void drm_mode_copy(struct drm_display_mode *dst, const struct drm_display_mode *src); | 887 | extern void drm_mode_copy(struct drm_display_mode *dst, const struct drm_display_mode *src); |
888 | extern struct drm_display_mode *drm_mode_duplicate(struct drm_device *dev, | 888 | extern struct drm_display_mode *drm_mode_duplicate(struct drm_device *dev, |
889 | const struct drm_display_mode *mode); | 889 | const struct drm_display_mode *mode); |
890 | extern void drm_mode_debug_printmodeline(struct drm_display_mode *mode); | 890 | extern void drm_mode_debug_printmodeline(const struct drm_display_mode *mode); |
891 | extern void drm_mode_config_init(struct drm_device *dev); | 891 | extern void drm_mode_config_init(struct drm_device *dev); |
892 | extern void drm_mode_config_reset(struct drm_device *dev); | 892 | extern void drm_mode_config_reset(struct drm_device *dev); |
893 | extern void drm_mode_config_cleanup(struct drm_device *dev); | 893 | extern void drm_mode_config_cleanup(struct drm_device *dev); |
894 | extern void drm_mode_set_name(struct drm_display_mode *mode); | 894 | extern void drm_mode_set_name(struct drm_display_mode *mode); |
895 | extern bool drm_mode_equal(struct drm_display_mode *mode1, struct drm_display_mode *mode2); | 895 | extern bool drm_mode_equal(const struct drm_display_mode *mode1, const struct drm_display_mode *mode2); |
896 | extern int drm_mode_width(struct drm_display_mode *mode); | 896 | extern int drm_mode_width(const struct drm_display_mode *mode); |
897 | extern int drm_mode_height(struct drm_display_mode *mode); | 897 | extern int drm_mode_height(const struct drm_display_mode *mode); |
898 | 898 | ||
899 | /* for us by fb module */ | 899 | /* for us by fb module */ |
900 | extern int drm_mode_attachmode_crtc(struct drm_device *dev, | 900 | extern int drm_mode_attachmode_crtc(struct drm_device *dev, |