aboutsummaryrefslogtreecommitdiff
path: root/drivers/regulator/tps65910-regulator.c
diff options
context:
space:
mode:
authorGravatar Rikard Falkeborn <rikard.falkeborn@gmail.com> 2020-08-30 00:11:03 +0200
committerGravatar Mark Brown <broonie@kernel.org> 2020-09-01 15:48:56 +0100
commite92b8ef87a8a4a95056d6b5852bd4b5288f34540 (patch)
treed95c6448aa43c763bfe28e8dd448ae5fa0f02573 /drivers/regulator/tps65910-regulator.c
parentregulator: tps6586x: Constify static regulator_ops (diff)
downloadlinux-e92b8ef87a8a4a95056d6b5852bd4b5288f34540.tar.gz
linux-e92b8ef87a8a4a95056d6b5852bd4b5288f34540.tar.bz2
linux-e92b8ef87a8a4a95056d6b5852bd4b5288f34540.zip
regulator: tps65912: Constify static regulator_ops
The only usage of tps65912_ops_dcdc and tps65912_ops_ldo is to assign their address to the ops field in the regulator_desc struct, which is a const pointer. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Link: https://lore.kernel.org/r/20200829221104.20870-8-rikard.falkeborn@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/tps65910-regulator.c')
0 files changed, 0 insertions, 0 deletions