diff options
Diffstat (limited to 'drivers/gpu/drm/drm_modes.c')
-rw-r--r-- | drivers/gpu/drm/drm_modes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index 59450f39bf96..d8da30e90db5 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/drm_modes.c | |||
@@ -46,7 +46,7 @@ | |||
46 | * | 46 | * |
47 | * Describe @mode using DRM_DEBUG. | 47 | * Describe @mode using DRM_DEBUG. |
48 | */ | 48 | */ |
49 | void drm_mode_debug_printmodeline(struct drm_display_mode *mode) | 49 | void drm_mode_debug_printmodeline(const struct drm_display_mode *mode) |
50 | { | 50 | { |
51 | DRM_DEBUG_KMS("Modeline %d:\"%s\" %d %d %d %d %d %d %d %d %d %d " | 51 | DRM_DEBUG_KMS("Modeline %d:\"%s\" %d %d %d %d %d %d %d %d %d %d " |
52 | "0x%x 0x%x\n", | 52 | "0x%x 0x%x\n", |
@@ -558,7 +558,7 @@ EXPORT_SYMBOL(drm_mode_list_concat); | |||
558 | * RETURNS: | 558 | * RETURNS: |
559 | * @mode->hdisplay | 559 | * @mode->hdisplay |
560 | */ | 560 | */ |
561 | int drm_mode_width(struct drm_display_mode *mode) | 561 | int drm_mode_width(const struct drm_display_mode *mode) |
562 | { | 562 | { |
563 | return mode->hdisplay; | 563 | return mode->hdisplay; |
564 | 564 | ||
@@ -579,7 +579,7 @@ EXPORT_SYMBOL(drm_mode_width); | |||
579 | * RETURNS: | 579 | * RETURNS: |
580 | * @mode->vdisplay | 580 | * @mode->vdisplay |
581 | */ | 581 | */ |
582 | int drm_mode_height(struct drm_display_mode *mode) | 582 | int drm_mode_height(const struct drm_display_mode *mode) |
583 | { | 583 | { |
584 | return mode->vdisplay; | 584 | return mode->vdisplay; |
585 | } | 585 | } |
@@ -768,7 +768,7 @@ EXPORT_SYMBOL(drm_mode_duplicate); | |||
768 | * RETURNS: | 768 | * RETURNS: |
769 | * True if the modes are equal, false otherwise. | 769 | * True if the modes are equal, false otherwise. |
770 | */ | 770 | */ |
771 | bool drm_mode_equal(struct drm_display_mode *mode1, struct drm_display_mode *mode2) | 771 | bool drm_mode_equal(const struct drm_display_mode *mode1, const struct drm_display_mode *mode2) |
772 | { | 772 | { |
773 | /* do clock check convert to PICOS so fb modes get matched | 773 | /* do clock check convert to PICOS so fb modes get matched |
774 | * the same */ | 774 | * the same */ |