diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-09-08 13:40:49 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-09-30 10:20:11 +0200 |
commit | 7c5f93b05efc72feb206348da00a0a77e631a3c2 (patch) | |
tree | 3b1cfabf1a831e2bb62517ad3ea93503cef2b4dc /drivers/gpu/drm/i915/dvo_tfp410.c | |
parent | 28b468a008888928ce59bc2528713b913be60baa (diff) | |
download | talos-op-linux-7c5f93b05efc72feb206348da00a0a77e631a3c2.tar.gz talos-op-linux-7c5f93b05efc72feb206348da00a0a77e631a3c2.zip |
drm/i915: Constify adjusted_mode
Make adjusted_mode const whereever we don't have to modify it. This only
covers cases when we have a local adjusted_mode variable, and doesn't
make any difference for cases where we just dereference
pipe_config->adjusted_mode.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/dvo_tfp410.c')
-rw-r--r-- | drivers/gpu/drm/i915/dvo_tfp410.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/dvo_tfp410.c b/drivers/gpu/drm/i915/dvo_tfp410.c index 7853719a0e81..6f1a0a6d4e22 100644 --- a/drivers/gpu/drm/i915/dvo_tfp410.c +++ b/drivers/gpu/drm/i915/dvo_tfp410.c @@ -222,8 +222,8 @@ static enum drm_mode_status tfp410_mode_valid(struct intel_dvo_device *dvo, } static void tfp410_mode_set(struct intel_dvo_device *dvo, - struct drm_display_mode *mode, - struct drm_display_mode *adjusted_mode) + const struct drm_display_mode *mode, + const struct drm_display_mode *adjusted_mode) { /* As long as the basics are set up, since we don't have clock dependencies * in the mode setup, we can just leave the registers alone and everything |