diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-11-12 18:09:01 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-12 22:09:15 -0500 |
commit | 86b15d5d3bae0b4a64bd2bf834fc1d876285dbf0 (patch) | |
tree | 0f1d442baafad80be092a2b9ec1f67b2814e6301 /drivers/video/backlight/ld9040_gamma.h | |
parent | 4c4d2a3a064c893324ad3daca5c097dc7f06bbe3 (diff) |
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 <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/backlight/ld9040_gamma.h')
-rw-r--r-- | drivers/video/backlight/ld9040_gamma.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/backlight/ld9040_gamma.h b/drivers/video/backlight/ld9040_gamma.h index 038d9c86ec03..c5e586d97385 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[] = { | |||
169 | 169 | ||
170 | struct ld9040_gamma { | 170 | struct ld9040_gamma { |
171 | unsigned int *gamma_22_table[MAX_GAMMA_LEVEL]; | 171 | unsigned int *gamma_22_table[MAX_GAMMA_LEVEL]; |
172 | } gamma_table = { | 172 | }; |
173 | |||
174 | static struct ld9040_gamma gamma_table = { | ||
173 | .gamma_22_table[0] = (unsigned int *)&ld9040_22_50, | 175 | .gamma_22_table[0] = (unsigned int *)&ld9040_22_50, |
174 | .gamma_22_table[1] = (unsigned int *)&ld9040_22_70, | 176 | .gamma_22_table[1] = (unsigned int *)&ld9040_22_70, |
175 | .gamma_22_table[2] = (unsigned int *)&ld9040_22_80, | 177 | .gamma_22_table[2] = (unsigned int *)&ld9040_22_80, |