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

leds: lm3532: Move static keyword to the front of declarations

Move the static keyword to the front of declarations ramp_table,
als_avrg_table and als_imp_table, and resolve the following
compiler warnings that can be seen when building with warnings
enabled (W=1):

drivers/leds/leds-lm3532.c:209:1: warning:
‘static’ is not at beginning of declaration [-Wold-style-declaration]

drivers/leds/leds-lm3532.c:266:1: warning:
‘static’ is not at beginning of declaration [-Wold-style-declaration]

drivers/leds/leds-lm3532.c:281:1: warning:
‘static’ is not at beginning of declaration [-Wold-style-declaration]

Signed-off-by: Krzysztof Wilczynski <kw@linux.com>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>

authored by

Krzysztof Wilczynski and committed by
Jacek Anaszewski
536129cc 4e421040

+3 -3
+3 -3
drivers/leds/leds-lm3532.c
··· 208 208 .cache_type = REGCACHE_FLAT, 209 209 }; 210 210 211 - const static int als_imp_table[LM3532_NUM_IMP_VALS] = {37000, 18500, 12330, 211 + static const int als_imp_table[LM3532_NUM_IMP_VALS] = {37000, 18500, 12330, 212 212 92500, 7400, 6170, 5290, 213 213 4630, 4110, 3700, 3360, 214 214 3080, 2850, 2640, 2440, ··· 265 265 return -EINVAL; 266 266 } 267 267 268 - const static int als_avrg_table[LM3532_NUM_AVG_VALS] = {17920, 35840, 71680, 268 + static const int als_avrg_table[LM3532_NUM_AVG_VALS] = {17920, 35840, 71680, 269 269 1433360, 286720, 573440, 270 270 1146880, 2293760}; 271 271 static int lm3532_get_als_avg_index(int avg_time) ··· 280 280 avg_time); 281 281 } 282 282 283 - const static int ramp_table[LM3532_NUM_RAMP_VALS] = { 8, 1024, 2048, 4096, 8192, 283 + static const int ramp_table[LM3532_NUM_RAMP_VALS] = { 8, 1024, 2048, 4096, 8192, 284 284 16384, 32768, 65536}; 285 285 static int lm3532_get_ramp_index(int ramp_time) 286 286 {