From: Jingoo Han Date: Tue, 12 Nov 2013 23:09:01 +0000 (-0800) Subject: backlight: ld9040: Staticize local variable gamma_table X-Git-Tag: upstream/snapshot3+hdmi~3995^2~153 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86b15d5d3bae0b4a64bd2bf834fc1d876285dbf0;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git backlight: ld9040: Staticize local variable gamma_table 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/backlight/ld9040_gamma.h b/drivers/video/backlight/ld9040_gamma.h index 038d9c8..c5e586d 100644 --- a/drivers/video/backlight/ld9040_gamma.h +++ b/drivers/video/backlight/ld9040_gamma.h @@ -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,