]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/video/backlight/vgg2432a4.c: add missing const
authorJingoo Han <jg1.han@samsung.com>
Thu, 25 Oct 2012 01:15:04 +0000 (12:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 26 Oct 2012 04:05:30 +0000 (15:05 +1100)
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>
drivers/video/backlight/ili9320.c
drivers/video/backlight/ili9320.h
drivers/video/backlight/vgg2432a4.c

index a66cfd10656be2f3b5b93edef1a3d866fd9225be..09ec735e43d87582e32db8f39206aa0048ce1cf8 100644 (file)
@@ -59,7 +59,7 @@ int ili9320_write(struct ili9320 *ili, unsigned int reg, unsigned int value)
 EXPORT_SYMBOL_GPL(ili9320_write);
 
 int ili9320_write_regs(struct ili9320 *ili,
-                      struct ili9320_reg *values,
+                      const struct ili9320_reg *values,
                       int nr_values)
 {
        int index;
index e388eca7cac5ca89069684d17d6bcaba75ab3a68..e0db738f7bb9fddd7dd4dc11787ac4f7a8307170 100644 (file)
@@ -63,7 +63,7 @@ extern int ili9320_write(struct ili9320 *ili,
                         unsigned int reg, unsigned int value);
 
 extern int ili9320_write_regs(struct ili9320 *ili,
-                             struct ili9320_reg *values,
+                             const struct ili9320_reg *values,
                              int nr_values);
 
 /* Device probe */
index b1ead3d3d3fb416b81b2b499c3531bbd11bd0260..83d84f6e972ffaf328912c0607416ff15425a790 100644 (file)
@@ -26,7 +26,7 @@
 
 /* Device initialisation sequences */
 
-static struct ili9320_reg vgg_init1[] = {
+static const struct ili9320_reg vgg_init1[] = {
        {
                .address = ILI9320_POWER1,
                .value   = ILI9320_POWER1_AP(0) | ILI9320_POWER1_BT(0),
@@ -43,7 +43,7 @@ static struct ili9320_reg vgg_init1[] = {
        },
 };
 
-static struct ili9320_reg vgg_init2[] = {
+static const struct ili9320_reg vgg_init2[] = {
        {
                .address = ILI9320_POWER1,
                .value   = (ILI9320_POWER1_AP(3) | ILI9320_POWER1_APE |
@@ -54,7 +54,7 @@ static struct ili9320_reg vgg_init2[] = {
        }
 };
 
-static struct ili9320_reg vgg_gamma[] = {
+static const struct ili9320_reg vgg_gamma[] = {
        {
                .address = ILI9320_GAMMA1,
                .value   = 0x0000,
@@ -89,7 +89,7 @@ static struct ili9320_reg vgg_gamma[] = {
 
 };
 
-static struct ili9320_reg vgg_init0[] = {
+static const struct ili9320_reg vgg_init0[] = {
        [0]     = {
                /* set direction and scan mode gate */
                .address = ILI9320_DRIVER,