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/i915/intel_crt.c | |
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/i915/intel_crt.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_crt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_crt.c b/drivers/gpu/drm/i915/intel_crt.c index 61d55d3141c7..48e3b76e0ab2 100644 --- a/drivers/gpu/drm/i915/intel_crt.c +++ b/drivers/gpu/drm/i915/intel_crt.c | |||
@@ -132,7 +132,7 @@ static int intel_crt_mode_valid(struct drm_connector *connector, | |||
132 | } | 132 | } |
133 | 133 | ||
134 | static bool intel_crt_mode_fixup(struct drm_encoder *encoder, | 134 | static bool intel_crt_mode_fixup(struct drm_encoder *encoder, |
135 | struct drm_display_mode *mode, | 135 | const struct drm_display_mode *mode, |
136 | struct drm_display_mode *adjusted_mode) | 136 | struct drm_display_mode *adjusted_mode) |
137 | { | 137 | { |
138 | return true; | 138 | return true; |