regulator: tps62360: Constify tps62360_dcdc_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sat, 29 Aug 2020 22:10:59 +0000 (00:10 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 1 Sep 2020 14:48:53 +0000 (15:48 +0100)
commit01167e88e9372f9748e94a7322b0d43ccb980d9f
tree89269bbd2ebe7feea6a0c80d7b8940df06588eeb
parent55c81934e7040c1e0c26b72ee752203ccf190b51
regulator: tps62360: Constify tps62360_dcdc_ops

The only usage of tps62360_dcdc_ops is to assign its address to the ops
field in the regulator_desc struct, which is a const pointer. Make it
const to allow the compiler to put it in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20200829221104.20870-4-rikard.falkeborn@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/tps62360-regulator.c