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

leds: lp8860: Constify reg_default tables

These reg_default tables are not modified after initialized, so make them
const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>

authored by

Axel Lin and committed by
Jacek Anaszewski
de88e71a 44ab901f

+2 -2
+2 -2
drivers/leds/leds-lp8860.c
··· 302 302 return ret; 303 303 } 304 304 305 - static struct reg_default lp8860_reg_defs[] = { 305 + static const struct reg_default lp8860_reg_defs[] = { 306 306 { LP8860_DISP_CL1_BRT_MSB, 0x00}, 307 307 { LP8860_DISP_CL1_BRT_LSB, 0x00}, 308 308 { LP8860_DISP_CL1_CURR_MSB, 0x00}, ··· 332 332 .cache_type = REGCACHE_NONE, 333 333 }; 334 334 335 - static struct reg_default lp8860_eeprom_defs[] = { 335 + static const struct reg_default lp8860_eeprom_defs[] = { 336 336 { LP8860_EEPROM_REG_0, 0x00 }, 337 337 { LP8860_EEPROM_REG_1, 0x00 }, 338 338 { LP8860_EEPROM_REG_2, 0x00 },