]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: cros-ec: Constify cros_ec_regulator_voltage_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sat, 11 Jul 2020 11:44:09 +0000 (13:44 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 13 Jul 2020 17:08:41 +0000 (18:08 +0100)
commitb95f1f2dcdf1b625a0ea3777244e2dae8bb0eb4c
tree6742ff420fc9ead8110b7f015b1350228689bb4a
parent6db401e57a16153b738a5a3c8654d2da76a926a0
regulator: cros-ec: Constify cros_ec_regulator_voltage_ops

It is never modified, so make it const to allow the compiler to put it
in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Acked-by: Pi-Hsun Shih <pihsun@chromium.org>
Link: https://lore.kernel.org/r/20200711114409.9911-1-rikard.falkeborn@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/cros-ec-regulator.c