aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/mgag200
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/mgag200
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/mgag200')
-rw-r--r--drivers/gpu/drm/mgag200/mgag200_mode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag200/mgag200_mode.c
index d303061b251e..a4d7c500c97b 100644
--- a/drivers/gpu/drm/mgag200/mgag200_mode.c
+++ b/drivers/gpu/drm/mgag200/mgag200_mode.c
@@ -78,8 +78,8 @@ static inline void mga_wait_busy(struct mga_device *mdev)
78 * to just pass that straight through, so this does nothing 78 * to just pass that straight through, so this does nothing
79 */ 79 */
80static bool mga_crtc_mode_fixup(struct drm_crtc *crtc, 80static bool mga_crtc_mode_fixup(struct drm_crtc *crtc,
81 struct drm_display_mode *mode, 81 const struct drm_display_mode *mode,
82 struct drm_display_mode *adjusted_mode) 82 struct drm_display_mode *adjusted_mode)
83{ 83{
84 return true; 84 return true;
85} 85}
@@ -1322,8 +1322,8 @@ void mga_crtc_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green,
1322 * to handle any encoder-specific limitations 1322 * to handle any encoder-specific limitations
1323 */ 1323 */
1324static bool mga_encoder_mode_fixup(struct drm_encoder *encoder, 1324static bool mga_encoder_mode_fixup(struct drm_encoder *encoder,
1325 struct drm_display_mode *mode, 1325 const struct drm_display_mode *mode,
1326 struct drm_display_mode *adjusted_mode) 1326 struct drm_display_mode *adjusted_mode)
1327{ 1327{
1328 return true; 1328 return true;
1329} 1329}