aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2012-12-17 19:00:54 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-17 20:15:16 -0500
commit3fd00432df3c4ae3c54a10360634f6d3a4a787c4 (patch)
treef447a7c3a172ffc4c9ef80212b0bbb815d21003b /drivers/video
parent53c7a2fffd71787299d6c7a7107b233d37ad7284 (diff)
drivers/video/backlight/vgg2432a4.c: add missing const
Add 'const' to static array that was missing it in its definition. Also, 'const' is added to ili9320_write_regs(), because it is called by vgg2432a4 driver. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Cc: Ben Dooks <ben-linux@fluff.org> 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/ili9320.c2
-rw-r--r--drivers/video/backlight/ili9320.h2
-rw-r--r--drivers/video/backlight/vgg2432a4.c8
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/video/backlight/ili9320.c b/drivers/video/backlight/ili9320.c
index 69e253b7c24..1235bf9defc 100644
--- a/drivers/video/backlight/ili9320.c
+++ b/drivers/video/backlight/ili9320.c
@@ -59,7 +59,7 @@ int ili9320_write(struct ili9320 *ili, unsigned int reg, unsigned int value)
59EXPORT_SYMBOL_GPL(ili9320_write); 59EXPORT_SYMBOL_GPL(ili9320_write);
60 60
61int ili9320_write_regs(struct ili9320 *ili, 61int ili9320_write_regs(struct ili9320 *ili,
62 struct ili9320_reg *values, 62 const struct ili9320_reg *values,
63 int nr_values) 63 int nr_values)
64{ 64{
65 int index; 65 int index;
diff --git a/drivers/video/backlight/ili9320.h b/drivers/video/backlight/ili9320.h
index e388eca7cac..e0db738f7bb 100644
--- a/drivers/video/backlight/ili9320.h
+++ b/drivers/video/backlight/ili9320.h
@@ -63,7 +63,7 @@ extern int ili9320_write(struct ili9320 *ili,
63 unsigned int reg, unsigned int value); 63 unsigned int reg, unsigned int value);
64 64
65extern int ili9320_write_regs(struct ili9320 *ili, 65extern int ili9320_write_regs(struct ili9320 *ili,
66 struct ili9320_reg *values, 66 const struct ili9320_reg *values,
67 int nr_values); 67 int nr_values);
68 68
69/* Device probe */ 69/* Device probe */
diff --git a/drivers/video/backlight/vgg2432a4.c b/drivers/video/backlight/vgg2432a4.c
index 5ba7fbd7e40..45e81b4cf8b 100644
--- a/drivers/video/backlight/vgg2432a4.c
+++ b/drivers/video/backlight/vgg2432a4.c
@@ -26,7 +26,7 @@
26 26
27/* Device initialisation sequences */ 27/* Device initialisation sequences */
28 28
29static struct ili9320_reg vgg_init1[] = { 29static const struct ili9320_reg vgg_init1[] = {
30 { 30 {
31 .address = ILI9320_POWER1, 31 .address = ILI9320_POWER1,
32 .value = ILI9320_POWER1_AP(0) | ILI9320_POWER1_BT(0), 32 .value = ILI9320_POWER1_AP(0) | ILI9320_POWER1_BT(0),
@@ -43,7 +43,7 @@ static struct ili9320_reg vgg_init1[] = {
43 }, 43 },
44}; 44};
45 45
46static struct ili9320_reg vgg_init2[] = { 46static const struct ili9320_reg vgg_init2[] = {
47 { 47 {
48 .address = ILI9320_POWER1, 48 .address = ILI9320_POWER1,
49 .value = (ILI9320_POWER1_AP(3) | ILI9320_POWER1_APE | 49 .value = (ILI9320_POWER1_AP(3) | ILI9320_POWER1_APE |
@@ -54,7 +54,7 @@ static struct ili9320_reg vgg_init2[] = {
54 } 54 }
55}; 55};
56 56
57static struct ili9320_reg vgg_gamma[] = { 57static const struct ili9320_reg vgg_gamma[] = {
58 { 58 {
59 .address = ILI9320_GAMMA1, 59 .address = ILI9320_GAMMA1,
60 .value = 0x0000, 60 .value = 0x0000,
@@ -89,7 +89,7 @@ static struct ili9320_reg vgg_gamma[] = {
89 89
90}; 90};
91 91
92static struct ili9320_reg vgg_init0[] = { 92static const struct ili9320_reg vgg_init0[] = {
93 [0] = { 93 [0] = {
94 /* set direction and scan mode gate */ 94 /* set direction and scan mode gate */
95 .address = ILI9320_DRIVER, 95 .address = ILI9320_DRIVER,