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

regulator: vexpress: Constify regulator_ops

vexpress_regulator_ops_ro and vexpress_regulator_ops are never changed,
make them const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Axel Lin and committed by
Mark Brown
ab54a4d7 29dc269a

+2 -2
+2 -2
drivers/regulator/vexpress-regulator.c
··· 46 46 return regmap_write(reg->regmap, 0, min_uV); 47 47 } 48 48 49 - static struct regulator_ops vexpress_regulator_ops_ro = { 49 + static const struct regulator_ops vexpress_regulator_ops_ro = { 50 50 .get_voltage = vexpress_regulator_get_voltage, 51 51 }; 52 52 53 - static struct regulator_ops vexpress_regulator_ops = { 53 + static const struct regulator_ops vexpress_regulator_ops = { 54 54 .get_voltage = vexpress_regulator_get_voltage, 55 55 .set_voltage = vexpress_regulator_set_voltage, 56 56 };