diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-07-17 11:56:50 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-07-19 21:52:38 -0400 |
commit | e811f5ae19043b2ac2c28e147a4274038e655598 (patch) | |
tree | ca2e6a30df60d0f53042df78934f406383e839bc /drivers/gpu/drm/cirrus | |
parent | 59fd415ded4aa9ac2f80ca3ac36e3a014c7e552e (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/cirrus')
-rw-r--r-- | drivers/gpu/drm/cirrus/cirrus_mode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/cirrus/cirrus_mode.c b/drivers/gpu/drm/cirrus/cirrus_mode.c index 100f6308c509..a44d31aa4e3c 100644 --- a/drivers/gpu/drm/cirrus/cirrus_mode.c +++ b/drivers/gpu/drm/cirrus/cirrus_mode.c | |||
@@ -97,7 +97,7 @@ static void cirrus_crtc_dpms(struct drm_crtc *crtc, int mode) | |||
97 | * to just pass that straight through, so this does nothing | 97 | * to just pass that straight through, so this does nothing |
98 | */ | 98 | */ |
99 | static bool cirrus_crtc_mode_fixup(struct drm_crtc *crtc, | 99 | static bool cirrus_crtc_mode_fixup(struct drm_crtc *crtc, |
100 | struct drm_display_mode *mode, | 100 | const struct drm_display_mode *mode, |
101 | struct drm_display_mode *adjusted_mode) | 101 | struct drm_display_mode *adjusted_mode) |
102 | { | 102 | { |
103 | return true; | 103 | return true; |
@@ -429,8 +429,8 @@ void cirrus_crtc_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, | |||
429 | 429 | ||
430 | 430 | ||
431 | static bool cirrus_encoder_mode_fixup(struct drm_encoder *encoder, | 431 | static bool cirrus_encoder_mode_fixup(struct drm_encoder *encoder, |
432 | struct drm_display_mode *mode, | 432 | const struct drm_display_mode *mode, |
433 | struct drm_display_mode *adjusted_mode) | 433 | struct drm_display_mode *adjusted_mode) |
434 | { | 434 | { |
435 | return true; | 435 | return true; |
436 | } | 436 | } |