]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/panel: Constify OF match tables
authorThierry Reding <treding@nvidia.com>
Tue, 14 Apr 2015 13:03:26 +0000 (15:03 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 5 Jun 2015 11:49:38 +0000 (13:49 +0200)
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>
drivers/gpu/drm/panel/panel-ld9040.c
drivers/gpu/drm/panel/panel-s6e8aa0.c

index 08cf2c588c3df3d4555f72d62d482b51098e5f0e..0ab5b69a4beac437eaba55905c46411ca58b2488 100644 (file)
@@ -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" },
        { }
 };
index 144b2733e3d70ffd33a71997da4fae29fc8723ec..30051108eec4869b7ec89d8d93ed4c4fe41662cf 100644 (file)
@@ -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" },
        { }
 };