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

regulator: ltc3589: Constify ltc3589_reg_defaults

ltc3589_reg_defaults[] is not modified after initialized, so make it const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Axel Lin and committed by
Mark Brown
ec867726 d770e558

+1 -1
+1 -1
drivers/regulator/ltc3589.c
··· 378 378 return false; 379 379 } 380 380 381 - static struct reg_default ltc3589_reg_defaults[] = { 381 + static const struct reg_default ltc3589_reg_defaults[] = { 382 382 { LTC3589_SCR1, 0x00 }, 383 383 { LTC3589_OVEN, 0x00 }, 384 384 { LTC3589_SCR2, 0x00 },