projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
066d30f
)
drm/tegra: sor: Constify display mode
author
Thierry Reding
<treding@nvidia.com>
Wed, 29 Jul 2015 16:20:01 +0000
(18:20 +0200)
committer
Thierry 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/tegra/sor.c
b/drivers/gpu/drm/tegra/sor.c
index bad63d0f5f13f8938b346abc002fac8bd25b29af..677bb78a9210f2ce664937b08a54d5c226318bd2 100644
(file)
--- 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)
{