diff options
author | Rikard Falkeborn <[email protected]> | 2020-07-11 13:44:09 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-07-13 18:08:41 +0100 |
commit | 308e65ad060dca2f0187731a7916c71521ce6c25 (patch) | |
tree | 6742ff420fc9ead8110b7f015b1350228689bb4a | |
parent | a7c15187b391d7fe9903903475a94e5cd5b796d6 (diff) |
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 <[email protected]>
Acked-by: Pi-Hsun Shih <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
-rw-r--r-- | drivers/regulator/cros-ec-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/cros-ec-regulator.c b/drivers/regulator/cros-ec-regulator.c index 35f97246bc48..eeed5aac3f32 100644 --- a/drivers/regulator/cros-ec-regulator.c +++ b/drivers/regulator/cros-ec-regulator.c @@ -142,7 +142,7 @@ static int cros_ec_regulator_set_voltage(struct regulator_dev *dev, int min_uV, sizeof(cmd), NULL, 0); } -static struct regulator_ops cros_ec_regulator_voltage_ops = { +static const struct regulator_ops cros_ec_regulator_voltage_ops = { .enable = cros_ec_regulator_enable, .disable = cros_ec_regulator_disable, .is_enabled = cros_ec_regulator_is_enabled, |