aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/sor.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-07-29 18:20:01 +0200
committerThierry Reding <treding@nvidia.com>2015-08-13 13:47:56 +0200
commit8044449556338fb27b1a03f6b1dbbdbc59e4ebfa (patch)
tree4bc196c0e0aedb2a9eff2462e9bfd9e6e374eed7 /drivers/gpu/drm/tegra/sor.c
parentdrm/tegra: sor: Reset the correct debugfs fields (diff)
downloadlinux-dev-8044449556338fb27b1a03f6b1dbbdbc59e4ebfa.tar.xz
linux-dev-8044449556338fb27b1a03f6b1dbbdbc59e4ebfa.zip
drm/tegra: sor: Constify display mode
The data structure is always only read, never written, and can hence be referred to by a const pointer. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/sor.c')
-rw-r--r--drivers/gpu/drm/tegra/sor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c
index bad63d0f5f13..677bb78a9210 100644
--- a/drivers/gpu/drm/tegra/sor.c
+++ b/drivers/gpu/drm/tegra/sor.c
@@ -385,7 +385,7 @@ static int tegra_sor_compute_params(struct tegra_sor *sor,
}
static int tegra_sor_calc_config(struct tegra_sor *sor,
- struct drm_display_mode *mode,
+ const struct drm_display_mode *mode,
struct tegra_sor_config *config,
struct drm_dp_link *link)
{