Skip to content

Commit

Permalink
drm/panel: Constify OF match tables
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Reding committed Jun 5, 2015
1 parent f3f375c commit 1a8f905
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/panel/panel-ld9040.c
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
{ }
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/panel/panel-s6e8aa0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
{ }
};
Expand Down

0 comments on commit 1a8f905

Please sign in to comment.