Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jingoo Han and committed by
Linus Torvalds
86b15d5d 4c4d2a3a

+3 -1
+3 -1
drivers/video/backlight/ld9040_gamma.h
··· 169 169 170 170 struct ld9040_gamma { 171 171 unsigned int *gamma_22_table[MAX_GAMMA_LEVEL]; 172 - } gamma_table = { 172 + }; 173 + 174 + static struct ld9040_gamma gamma_table = { 173 175 .gamma_22_table[0] = (unsigned int *)&ld9040_22_50, 174 176 .gamma_22_table[1] = (unsigned int *)&ld9040_22_70, 175 177 .gamma_22_table[2] = (unsigned int *)&ld9040_22_80,