aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_display.c
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/radeon/radeon_display.c
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/radeon/radeon_display.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index 64a008d14493..7ddef8f30d0e 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -1401,7 +1401,7 @@ void radeon_modeset_fini(struct radeon_device *rdev)
1401 radeon_i2c_fini(rdev); 1401 radeon_i2c_fini(rdev);
1402} 1402}
1403 1403
1404static bool is_hdtv_mode(struct drm_display_mode *mode) 1404static bool is_hdtv_mode(const struct drm_display_mode *mode)
1405{ 1405{
1406 /* try and guess if this is a tv or a monitor */ 1406 /* try and guess if this is a tv or a monitor */
1407 if ((mode->vdisplay == 480 && mode->hdisplay == 720) || /* 480p */ 1407 if ((mode->vdisplay == 480 && mode->hdisplay == 720) || /* 480p */
@@ -1414,7 +1414,7 @@ static bool is_hdtv_mode(struct drm_display_mode *mode)
1414} 1414}
1415 1415
1416bool radeon_crtc_scaling_mode_fixup(struct drm_crtc *crtc, 1416bool radeon_crtc_scaling_mode_fixup(struct drm_crtc *crtc,
1417 struct drm_display_mode *mode, 1417 const struct drm_display_mode *mode,
1418 struct drm_display_mode *adjusted_mode) 1418 struct drm_display_mode *adjusted_mode)
1419{ 1419{
1420 struct drm_device *dev = crtc->dev; 1420 struct drm_device *dev = crtc->dev;