backlight: ld9040: Staticize local variable gamma_table
authorJingoo Han <jg1.han@samsung.com>
Tue, 12 Nov 2013 23:09:01 +0000 (15:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:15 +0000 (12:09 +0900)
Fix the following sparse warnings:

  drivers/video/backlight/ld9040_gamma.h:172:3: warning: symbol 'gamma_table' was not declared. Should it be static?

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/ld9040_gamma.h

index 038d9c86ec031d24ec8282948e06d2a24ef7a8bd..c5e586d973851ef18c6a6b4aa0f83ebe628b1ff2 100644 (file)
@@ -169,7 +169,9 @@ static const unsigned int ld9040_22_50[] = {
 
 struct ld9040_gamma {
        unsigned int *gamma_22_table[MAX_GAMMA_LEVEL];
-} gamma_table = {
+};
+
+static struct ld9040_gamma gamma_table = {
        .gamma_22_table[0] = (unsigned int *)&ld9040_22_50,
        .gamma_22_table[1] = (unsigned int *)&ld9040_22_70,
        .gamma_22_table[2] = (unsigned int *)&ld9040_22_80,