aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ast
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-07-17 11:56:50 -0400
committerDave Airlie <airlied@redhat.com>2012-07-19 21:52:38 -0400
commite811f5ae19043b2ac2c28e147a4274038e655598 (patch)
treeca2e6a30df60d0f53042df78934f406383e839bc /drivers/gpu/drm/ast
parent59fd415ded4aa9ac2f80ca3ac36e3a014c7e552e (diff)
drm: Make the .mode_fixup() operations mode argument a const pointer
The passed mode must not be modified by the operation, make it const. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/ast')
-rw-r--r--drivers/gpu/drm/ast/ast_mode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c
index 65f9d231af14..7282c081fb53 100644
--- a/drivers/gpu/drm/ast/ast_mode.c
+++ b/drivers/gpu/drm/ast/ast_mode.c
@@ -460,8 +460,8 @@ static void ast_crtc_dpms(struct drm_crtc *crtc, int mode)
460} 460}
461 461
462static bool ast_crtc_mode_fixup(struct drm_crtc *crtc, 462static bool ast_crtc_mode_fixup(struct drm_crtc *crtc,
463 struct drm_display_mode *mode, 463 const struct drm_display_mode *mode,
464 struct drm_display_mode *adjusted_mode) 464 struct drm_display_mode *adjusted_mode)
465{ 465{
466 return true; 466 return true;
467} 467}
@@ -680,7 +680,7 @@ static void ast_encoder_dpms(struct drm_encoder *encoder, int mode)
680} 680}
681 681
682static bool ast_mode_fixup(struct drm_encoder *encoder, 682static bool ast_mode_fixup(struct drm_encoder *encoder,
683 struct drm_display_mode *mode, 683 const struct drm_display_mode *mode,
684 struct drm_display_mode *adjusted_mode) 684 struct drm_display_mode *adjusted_mode)
685{ 685{
686 return true; 686 return true;