drm/tegra: sor: Constify display mode
authorThierry Reding <treding@nvidia.com>
Wed, 29 Jul 2015 16:20:01 +0000 (18:20 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Aug 2015 11:47:56 +0000 (13:47 +0200)
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>
drivers/gpu/drm/tegra/sor.c

index bad63d0f5f13f8938b346abc002fac8bd25b29af..677bb78a9210f2ce664937b08a54d5c226318bd2 100644 (file)
@@ -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)
 {