diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-12-11 08:59:31 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-02-04 05:32:03 -0500 |
commit | 234f9a22f4f24f3b2a49cd70d6be52e4b7db56d2 (patch) | |
tree | 1ded5fa93b545af3a2f3cd99b872d5b07b8a6c01 /drivers/video | |
parent | eb30199b46e3d4ed73d2ad0b7f4da418d7da1da8 (diff) |
OMAPDSS: constify port arrays
The port arrays are constant data, so set them as 'const'.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/omap2/dss/dss.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/fbdev/omap2/dss/dss.c b/drivers/video/fbdev/omap2/dss/dss.c index 9987154d50b4..1884c29ef482 100644 --- a/drivers/video/fbdev/omap2/dss/dss.c +++ b/drivers/video/fbdev/omap2/dss/dss.c | |||
@@ -70,7 +70,7 @@ struct dss_features { | |||
70 | u8 fck_div_max; | 70 | u8 fck_div_max; |
71 | u8 dss_fck_multiplier; | 71 | u8 dss_fck_multiplier; |
72 | const char *parent_clk_name; | 72 | const char *parent_clk_name; |
73 | enum omap_display_type *ports; | 73 | const enum omap_display_type *ports; |
74 | int num_ports; | 74 | int num_ports; |
75 | int (*dpi_select_source)(int port, enum omap_channel channel); | 75 | int (*dpi_select_source)(int port, enum omap_channel channel); |
76 | }; | 76 | }; |
@@ -677,11 +677,11 @@ void dss_debug_dump_clocks(struct seq_file *s) | |||
677 | #endif | 677 | #endif |
678 | 678 | ||
679 | 679 | ||
680 | static enum omap_display_type omap2plus_ports[] = { | 680 | static const enum omap_display_type omap2plus_ports[] = { |
681 | OMAP_DISPLAY_TYPE_DPI, | 681 | OMAP_DISPLAY_TYPE_DPI, |
682 | }; | 682 | }; |
683 | 683 | ||
684 | static enum omap_display_type omap34xx_ports[] = { | 684 | static const enum omap_display_type omap34xx_ports[] = { |
685 | OMAP_DISPLAY_TYPE_DPI, | 685 | OMAP_DISPLAY_TYPE_DPI, |
686 | OMAP_DISPLAY_TYPE_SDI, | 686 | OMAP_DISPLAY_TYPE_SDI, |
687 | }; | 687 | }; |