summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panel
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-04-14 15:03:26 +0200
committerThierry Reding <treding@nvidia.com>2015-06-05 13:49:38 +0200
commit1a8f9056f59e019892c4ce192aa435c15cc37a73 (patch)
treee0608524d3ccb5613940a4e7aec16ee4babde277 /drivers/gpu/drm/panel
parentf3f375cd4e411b66511178be9a1dd0256ae41e77 (diff)
downloadop-kernel-dev-1a8f9056f59e019892c4ce192aa435c15cc37a73.zip
op-kernel-dev-1a8f9056f59e019892c4ce192aa435c15cc37a73.tar.gz
drm/panel: Constify OF match tables
Both the Samsung LD9040 and Samsung S6E8AA0 panel drivers are missing a const qualifier for their OF match tables. This data is static and never changes, so can be read-only. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/panel')
-rw-r--r--drivers/gpu/drm/panel/panel-ld9040.c2
-rw-r--r--drivers/gpu/drm/panel/panel-s6e8aa0.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/panel/panel-ld9040.c b/drivers/gpu/drm/panel/panel-ld9040.c
index 08cf2c5..0ab5b69 100644
--- a/drivers/gpu/drm/panel/panel-ld9040.c
+++ b/drivers/gpu/drm/panel/panel-ld9040.c
@@ -367,7 +367,7 @@ static int ld9040_remove(struct spi_device *spi)
return 0;
}
-static struct of_device_id ld9040_of_match[] = {
+static const struct of_device_id ld9040_of_match[] = {
{ .compatible = "samsung,ld9040" },
{ }
};
diff --git a/drivers/gpu/drm/panel/panel-s6e8aa0.c b/drivers/gpu/drm/panel/panel-s6e8aa0.c
index 144b273..3005110 100644
--- a/drivers/gpu/drm/panel/panel-s6e8aa0.c
+++ b/drivers/gpu/drm/panel/panel-s6e8aa0.c
@@ -1041,7 +1041,7 @@ static int s6e8aa0_remove(struct mipi_dsi_device *dsi)
return 0;
}
-static struct of_device_id s6e8aa0_of_match[] = {
+static const struct of_device_id s6e8aa0_of_match[] = {
{ .compatible = "samsung,s6e8aa0" },
{ }
};
OpenPOWER on IntegriCloud