aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2012-12-17 19:00:50 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-17 20:15:16 -0500
commitc22e61b339146ed80eb0125f18d698883f99825a (patch)
tree924797a41d40a06386c69ef37757f0a379897d5d /drivers/video
parentb5d6904babd4a57b1035e048f74fc5b12fc06d8f (diff)
drivers/video/backlight/lms283gf05.c: add missing const
Add 'const' to static array that was missing it in its definition. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Marek Vasut <marex@denx.de> Cc: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/backlight/lms283gf05.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/backlight/lms283gf05.c b/drivers/video/backlight/lms283gf05.c
index b7ad0d526bf7..13e24d52887c 100644
--- a/drivers/video/backlight/lms283gf05.c
+++ b/drivers/video/backlight/lms283gf05.c
@@ -31,7 +31,7 @@ struct lms283gf05_seq {
31}; 31};
32 32
33/* Magic sequences supplied by manufacturer, for details refer to datasheet */ 33/* Magic sequences supplied by manufacturer, for details refer to datasheet */
34static struct lms283gf05_seq disp_initseq[] = { 34static const struct lms283gf05_seq disp_initseq[] = {
35 /* REG, VALUE, DELAY */ 35 /* REG, VALUE, DELAY */
36 { 0x07, 0x0000, 0 }, 36 { 0x07, 0x0000, 0 },
37 { 0x13, 0x0000, 10 }, 37 { 0x13, 0x0000, 10 },
@@ -78,7 +78,7 @@ static struct lms283gf05_seq disp_initseq[] = {
78 { 0x22, 0x0000, 0 } 78 { 0x22, 0x0000, 0 }
79}; 79};
80 80
81static struct lms283gf05_seq disp_pdwnseq[] = { 81static const struct lms283gf05_seq disp_pdwnseq[] = {
82 { 0x07, 0x0016, 30 }, 82 { 0x07, 0x0016, 30 },
83 83
84 { 0x07, 0x0004, 0 }, 84 { 0x07, 0x0004, 0 },
@@ -104,7 +104,7 @@ static void lms283gf05_reset(unsigned long gpio, bool inverted)
104} 104}
105 105
106static void lms283gf05_toggle(struct spi_device *spi, 106static void lms283gf05_toggle(struct spi_device *spi,
107 struct lms283gf05_seq *seq, int sz) 107 const struct lms283gf05_seq *seq, int sz)
108{ 108{
109 char buf[3]; 109 char buf[3];
110 int i; 110 int i;