Linux Framebuffer Layer development
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: linux-fbdev@vger.kernel.org, linux-omap@vger.kernel.org
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Subject: [PATCH 03/14] OMAPDSS: constify port arrays
Date: Tue, 27 Jan 2015 10:50:31 +0000	[thread overview]
Message-ID: <1422355842-11234-4-git-send-email-tomi.valkeinen@ti.com> (raw)
In-Reply-To: <1422355842-11234-1-git-send-email-tomi.valkeinen@ti.com>

The port arrays are constant data, so set them as 'const'.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
---
 drivers/video/fbdev/omap2/dss/dss.c | 6 +++---
 1 file 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 {
 	u8 fck_div_max;
 	u8 dss_fck_multiplier;
 	const char *parent_clk_name;
-	enum omap_display_type *ports;
+	const enum omap_display_type *ports;
 	int num_ports;
 	int (*dpi_select_source)(int port, enum omap_channel channel);
 };
@@ -677,11 +677,11 @@ void dss_debug_dump_clocks(struct seq_file *s)
 #endif
 
 
-static enum omap_display_type omap2plus_ports[] = {
+static const enum omap_display_type omap2plus_ports[] = {
 	OMAP_DISPLAY_TYPE_DPI,
 };
 
-static enum omap_display_type omap34xx_ports[] = {
+static const enum omap_display_type omap34xx_ports[] = {
 	OMAP_DISPLAY_TYPE_DPI,
 	OMAP_DISPLAY_TYPE_SDI,
 };
-- 
2.2.2


  parent reply	other threads:[~2015-01-27 10:50 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-27 10:50 [PATCH 00/14] OMAPDSS: Add TI DRA7xx support Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 01/14] OMAPDSS: Add enum dss_pll_id Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 02/14] OMAPDSS: PLL: add dss_pll_wait_reset_done() Tomi Valkeinen
2015-01-27 10:50 ` Tomi Valkeinen [this message]
2015-01-27 10:50 ` [PATCH 04/14] OMAPDSS: OMAP5: fix digit output's allowed mgrs Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 05/14] OMAPDSS: encoder-tpd12s015: Fix race issue with LS_OE Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 06/14] OMAPDSS: add define for DRA7xx HW version Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 07/14] Doc/DT: Add DT binding doc for DRA7xx DSS Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 08/14] OMAPDSS: DSS: Add DRA7xx base support Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 09/14] OMAPDSS: Add functions for external control of PLL Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 10/14] OMAPDSS: Add Video PLLs for DRA7xx Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 11/14] OMAPDSS: DISPC: Add DRA7xx support Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 12/14] OMAPDSS: DISPC: program dispc polarities to control module Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 13/14] OMAPDSS: HDMI: Add DRA7xx support Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 14/14] OMAPDSS: DPI: " Tomi Valkeinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1422355842-11234-4-git-send-email-tomi.valkeinen@ti.com \
    --to=tomi.valkeinen@ti.com \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox