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

regulator: sc2731: Constify regulators

The regulators array should never need to be modified, make it const so
compiler can put it to .rodata.

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
883ce242 5de219cc

+1 -1
+1 -1
drivers/regulator/sc2731-regulator.c
··· 146 146 .vsel_mask = vmask, \ 147 147 } 148 148 149 - static struct regulator_desc regulators[] = { 149 + static const struct regulator_desc regulators[] = { 150 150 SC2731_REGU_LINEAR(BUCK_CPU0, SC2731_POWER_PD_SW, 151 151 SC2731_DCDC_CPU0_PD_MASK, SC2731_DCDC_CPU0_VOL, 152 152 SC2731_DCDC_CPU0_VOL_MASK, 3125, 400000, 1996875),