Skip to contentSkip to conversation

backlight: ld9040: Staticize local variable gamma_table

PATCH New Jingoo Han 1 participant 1 message Jul 31, 2013

Subsystems (2)
lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/3 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?

---
 drivers/video/backlight/ld9040_gamma.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/backlight/ld9040_gamma.h +1 -1
index 038d9c8..160f07a 100644
@@ -169,7 +169,7 @@ static const unsigned int ld9040_22_50[] = {
 
 struct ld9040_gamma {
 	unsigned int *gamma_22_table[MAX_GAMMA_LEVEL];
-} gamma_table = {
+} static 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,
Signature · 1 line
1.7.10.4