summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/tegra/sor.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-07-29 19:20:01 +0300
committerThierry Reding <treding@nvidia.com>2015-08-13 14:47:56 +0300
commit8044449556338fb27b1a03f6b1dbbdbc59e4ebfa (patch)
tree4bc196c0e0aedb2a9eff2462e9bfd9e6e374eed7 /drivers/gpu/drm/tegra/sor.c
parent066d30f8c7547f9ca744cd090092d66847e85de4 (diff)
downloadlinux-8044449556338fb27b1a03f6b1dbbdbc59e4ebfa.tar.xz
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)
{